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