no-OS
Loading...
Searching...
No Matches
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
33
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "stm32_hal.h"
38#include "stm32_irq.h"
39#include "stm32_gpio_irq.h"
40#include "stm32_i2c.h"
41#include "stm32_spi.h"
42#include "stm32_gpio.h"
43#include "stm32_uart.h"
44#include "stm32_uart_stdio.h"
45#include "no_os_gpio.h"
46#include "no_os_uart.h"
47
48extern UART_HandleTypeDef huart5;
49
50#ifdef IIO_SUPPORT
51#define INTC_DEVICE_ID 0
52#endif
53
54#define UART_DEVICE_ID 5
55#define UART_BAUDRATE 230400
56#define UART_EXTRA &uart_extra_ip
57#define UART_OPS &stm32_uart_ops
58#define UART_IRQ_ID UART5_IRQn
59
60/* SPI Pin mapping for Arduino interface */
61#define SPI_DEVICE_ID 1
62#define SPI_BAUDRATE 2000000
63#define SPI_OPS &stm32_spi_ops
64#define SPI_CS_PORT 0
65#define SPI_CS 15
66#define SPI_EXTRA &spi_extra_ip
67
68#define GPIO_OPS &stm32_gpio_ops
69#define GPIO_EXTRA &gpio_extra_ip
70#define GPIO_PP_EXTRA &gpio_extra_pp_ip
71#define GPIO_IN_EXTRA &gpio_in_extra_ip
72
73#define GPIO_GPIO2_PORT 6
74#define GPIO_GPIO2 7
75
76#define GPIO_BUSY_PORT 3
77#define GPIO_BUSY 12
78
79#define GPIO_FAULT_PORT 6
80#define GPIO_FAULT 11
81
82#define GPIO_BOOTLOAD_PORT 0
83#define GPIO_BOOTLOAD 2
84
85#define GPIO_CNV_PORT 0
86#define GPIO_CNV 11
87
88#define GPIO_ACALC_PORT 0
89#define GPIO_ACALC 10
90
91#define GPIO_DIAG1_PORT 1
92#define GPIO_DAIG1 15
93
94#define GPIO_SHDN_N_PORT 0
95#define GPIO_SHDN_N 4
96
97#define GPIO_RSTB_PORT 0
98#define GPIO_RSTB 6
99
100#define GPIO_COIL_RS_PORT 6
101#define GPIO_COIL_RS 9
102
103#define GPIO_V_EN_PORT 2
104#define GPIO_V_EN 1
105
106#define GPIO_IRQ_ID 10
107#define GPIO_IRQ_OPS &stm32_gpio_irq_ops
108#define GPIO_IRQ_EXTRA &trigger_gpio_irq_ip
109#define GPIO_IRQ_INTR_PRIORITY EXTI15_10_IRQn
110
111#define ADMT4000_GPIO_CB_HANDLE NULL /* Not used in stm32 platform */
112#define ADMT4000_GPIO_TRIG_IRQ_ID 0 /* Not used in stm32 platform */
113
114#define I2C_DEVICE_ID 1
115#define I2C_TIMING 0x00000E14 /* (Unused) */
116#define I2C_OPS &stm32_i2c_ops
117#define I2C_EXTRA &i2c_extra_ip
118
119#define HW_CARRIER_NAME "SDP_K1"
120#ifndef FIRMWARE_VERSION
121#define FIRMWARE_VERSION "1.0.0"
122#endif
123
124#if (TMC)
125#define TMC_CS_PORT 6
126#define TMC_CS_PIN 10
127#define SPI_TMC_EXTRA &spi_tmc_extra_ip
128#endif
129
138
139#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct xil_uart_init_param uart_extra_ip
Definition parameters.c:37
struct xil_gpio_init_param gpio_extra_ip
Definition parameters.c:56
struct stm32_spi_init_param spi_extra_ip
Definition parameters.c:138
struct stm32_gpio_init_param gpio_in_extra_ip
Definition parameters.c:50
struct stm32_gpio_init_param gpio_extra_pp_ip
Definition parameters.c:45
struct stm32_i2c_init_param i2c_extra_ip
Definition parameters.c:65
struct stm32_gpio_irq_init_param trigger_gpio_irq_ip
Definition parameters.c:69
struct stm32_spi_init_param spi_tmc_extra_ip
Header file of GPIO Interface.
Header file of UART interface.
Header file for stm32 gpio specifics.
Header file for stm32 gpio irq specifics.
Header file for the stm32 i2c driver.
Header file for stm32 irq specifics.
Header file for the stm32 spi driver.
Header file of UART driver for STM32.
Header file of stm32 UART driver stdout/stdin redirection.
Structure holding the initialization parameters for stm32 platform.
Definition stm32_gpio.h:44
Structure holding the initialization parameters for stm32 platform specific GPIO IRQ parameters.
Definition stm32_gpio_irq.h:44
Structure holding the initialization parameters for stm32 platform specific I2C parameters.
Definition stm32_i2c.h:54
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition stm32_spi.h:51
Specific initialization parameters for stm32 UART.
Definition stm32_uart.h:46