no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef __PARAMETERS_H__
41 #define __PARAMETERS_H__
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 #include "stm32_hal.h"
47 #include "stm32_irq.h"
48 #include "stm32_spi.h"
49 #include "stm32_gpio.h"
50 #include "stm32_uart.h"
51 #include "stm32_uart_stdio.h"
52 #include "stm32_gpio_irq.h"
53 
54 /******************************************************************************/
55 /********************** Macros and Constants Definitions **********************/
56 /******************************************************************************/
57 extern UART_HandleTypeDef huart3;
58 
59 #ifdef IIO_SUPPORT
60 #define INTC_DEVICE_ID 0
61 #define IIO_APP_HUART (&huart3)
62 #define UART_IRQ_ID USART3_IRQn
63 #endif
64 
65 #define UART_DEVICE_ID 3
66 #define UART_BAUDRATE 115200
67 #define UART_EXTRA &ad74413r_uart_extra_ip
68 #define UART_OPS &stm32_uart_ops
69 
70 #define SPI_DEVICE_ID 1
71 #define SPI_BAUDRATE 1000000
72 #define SPI_CS 14
73 #define SPI_CS_PORT GPIOD
74 #define SPI_OPS &stm32_spi_ops
75 #define SPI_EXTRA &ad74413r_spi_extra_ip
76 
79 
80 #ifdef IIO_TRIGGER_EXAMPLE
81 extern struct stm32_gpio_irq_init_param ad74413r_gpio_irq_extra_ip;
82 /* Setting for PortG Pin0 used for DATA_READY.
83  Has to be adapted accordingly if another pin is used.
84  */
85 #define AD74413R_GPIO_TRIG_IRQ_ID 0 /* Not used in stm32 platform */
86 #define AD74413R_GPIO_CB_HANDLE NULL /* Not used in stm32 platform */
87 
88 #define GPIO_IRQ_ID 0 /* Pin 0 */
89 #define GPIO_IRQ_OPS &stm32_gpio_irq_ops
90 #define GPIO_IRQ_EXTRA &ad74413r_gpio_irq_extra_ip
91 #endif
92 
93 #endif /* __PARAMETERS_H__ */
ad74413r_uart_extra_ip
struct max_uart_init_param ad74413r_uart_extra_ip
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:50
stm32_spi.h
Header file for the stm32 spi driver.
stm32_uart_init_param
Specific initialization parameters for stm32 UART.
Definition: stm32_uart.h:52
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.
huart3
UART_HandleTypeDef huart3
stm32_gpio.h
Header file for stm32 gpio specifics.
ad74413r_spi_extra_ip
struct max_spi_init_param ad74413r_spi_extra_ip
Definition: parameters.c:54
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
stm32_hal.h