no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "stm32_hal.h"
41 #include "stm32_irq.h"
42 #include "stm32_spi.h"
43 #include "stm32_gpio.h"
44 #include "stm32_uart.h"
45 #include "stm32_uart_stdio.h"
46 
47 /******************************************************************************/
48 /********************** Macros and Constants Definitions **********************/
49 /******************************************************************************/
50 #ifdef IIO_SUPPORT
51 extern UART_HandleTypeDef huart5;
52 #define INTC_DEVICE_ID 0
53 #define IIO_APP_HUART (&huart5)
54 #define UART_IRQ_ID UART5_IRQn
55 #define UART_DEVICE_ID 5
56 #define UART_BAUDRATE 115200
57 #define UART_EXTRA &adxrs290_uart_extra_ip
58 #define UART_OPS &stm32_uart_ops
59 #endif
60 
61 #define SPI_DEVICE_ID 1
62 #define SPI_BAUDRATE 4000000
63 #define SPI_CS 15
64 #define SPI_CS_PORT 0
65 #define SPI_OPS &stm32_spi_ops
66 #define SPI_EXTRA &adxrs290_spi_extra_ip
67 
68 #define GPIO_SYNC_PIN_NUM 2
69 #define GPIO_SYNC_PORT_NUM 0
70 #define GPIO_OPS &stm32_gpio_ops
71 #define GPIO_EXTRA &adxrs290_gpio_extra_ip
72 
73 #ifdef IIO_TRIGGER_EXAMPLE
74 #error IIO_TRIGGER_EXAMPLE is not supported on STM32 platform for adxrs290-pmdz project.
75 #endif
76 
80 
81 #endif /* __PARAMETERS_H__ */
stm32_spi_init_param
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:51
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
adxrs290_uart_extra_ip
struct max_uart_init_param adxrs290_uart_extra_ip
Definition: parameters.c:42
stm32_uart_init_param
Specific initialization parameters for stm32 UART.
Definition: stm32_uart.h:46
adxrs290_gpio_extra_ip
struct max_gpio_init_param adxrs290_gpio_extra_ip
Definition: parameters.c: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.
adxrs290_spi_extra_ip
struct aducm_spi_init_param adxrs290_spi_extra_ip
Definition: parameters.c:42
huart5
UART_HandleTypeDef huart5
stm32_hal.h