no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
35 #ifndef __PARAMETERS_H__
36 #define __PARAMETERS_H__
37 
38 /******************************************************************************/
39 /***************************** Include Files **********************************/
40 /******************************************************************************/
41 
42 #include "stm32_hal.h"
43 #include "stm32_irq.h"
44 #include "stm32_gpio_irq.h"
45 #include "stm32_spi.h"
46 #include "stm32_gpio.h"
47 #include "stm32_uart.h"
48 #include "stm32_uart_stdio.h"
49 
50 /******************************************************************************/
51 /********************** Macros and Constants Definitions **********************/
52 /******************************************************************************/
53 
54 extern UART_HandleTypeDef huart5;
55 
56 #ifdef IIO_SUPPORT
57 #define INTC_DEVICE_ID 0
58 #endif
59 
60 #define UART_DEVICE_ID 5
61 #define UART_BAUDRATE 115200
62 #define UART_EXTRA &adis1646x_uart_extra_ip
63 #define UART_OPS &stm32_uart_ops
64 #define UART_IRQ_ID UART5_IRQn
65 
66 #define SPI_DEVICE_ID 1
67 #define SPI_BAUDRATE 1000000
68 #define SPI_CS 15
69 #define SPI_CS_PORT 0
70 #define SPI_OPS &stm32_spi_ops
71 #define SPI_EXTRA &adis1646x_spi_extra_ip
72 
75 
76 #define GPIO_RESET_PIN_NUM 4
77 #define GPIO_RESET_PORT_NUM 0
78 #define GPIO_OPS &stm32_gpio_ops
79 #define GPIO_EXTRA &adis1646x_gpio_reset_extra_ip
81 
82 #ifdef IIO_TRIGGER_EXAMPLE
83 
84 #define GPIO_DRDY_PIN_NUM 2
85 #define GPIO_DRDY_PORT_NUM 0
86 
87 extern struct stm32_gpio_irq_init_param adis1646x_gpio_irq_extra_ip;
88 /* Setting for PortA Pin2 used for DATA_READY.
89  Has to be adapted accordingly if another pin is used.
90  */
91 #define ADIS1646X_GPIO_TRIG_IRQ_ID 0 /* Not used in stm32 platform */
92 #define ADIS1646X_GPIO_CB_HANDLE NULL /* Not used in stm32 platform */
93 
94 #define GPIO_IRQ_ID 2 /* Pin 2 */
95 #define GPIO_IRQ_OPS &stm32_gpio_irq_ops
96 #define GPIO_IRQ_EXTRA &adis1646x_gpio_irq_extra_ip
97 #endif
98 
99 #endif /* __PARAMETERS_H__ */
stm32_spi_init_param
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:51
stm32_gpio_irq_init_param
Structure holding the initialization parameters for stm32 platform specific GPIO IRQ parameters.
Definition: stm32_gpio_irq.h:44
stm32_spi.h
Header file for the stm32 spi driver.
stm32_gpio_init_param
Structure holding the initialization parameters for stm32 platform.
Definition: stm32_gpio.h:44
adis1646x_uart_extra_ip
struct max_uart_init_param adis1646x_uart_extra_ip
Definition: parameters.c:44
stm32_uart_init_param
Specific initialization parameters for stm32 UART.
Definition: stm32_uart.h:46
stm32_uart.h
Header file of UART driver for STM32.
stm32_uart_stdio.h
Header file of stm32 UART driver stdout/stdin redirection.
stm32_irq.h
Header file for stm32 irq specifics.
stm32_gpio.h
Header file for stm32 gpio specifics.
adis1646x_gpio_reset_extra_ip
struct stm32_gpio_init_param adis1646x_gpio_reset_extra_ip
Definition: parameters.c:53
adis1646x_spi_extra_ip
struct max_spi_init_param adis1646x_spi_extra_ip
Definition: parameters.c:52
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
huart5
UART_HandleTypeDef huart5
stm32_hal.h