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 
53 /******************************************************************************/
54 /********************** Macros and Constants Definitions **********************/
55 /******************************************************************************/
56 #ifdef IIO_SUPPORT
57 extern UART_HandleTypeDef huart5;
58 #define INTC_DEVICE_ID 0
59 #define IIO_APP_HUART (&huart5)
60 #define UART_IRQ_ID UART5_IRQn
61 #define UART_DEVICE_ID 5
62 #define UART_BAUDRATE 115200
63 #endif
64 
65 #define SPI_DEVICE_ID 1
66 #define SPI_BAUDRATE 4000000
67 #define SPI_CS 15
68 #define SPI_CS_PORT GPIOA
69 #define SPI_OPS &stm32_spi_ops
70 #define SPI_EXTRA &adxrs290_spi_extra_ip
71 
72 #define GPIO_SYNC_PIN_NUM 2
73 #define GPIO_SYNC_PORT_NUM 0
74 #define GPIO_OPS &stm32_gpio_ops
75 #define GPIO_EXTRA &adxrs290_gpio_extra_ip
76 
77 #ifdef IIO_TRIGGER_EXAMPLE
78 #error IIO_TRIGGER_EXAMPLE is not supported on STM32 platform for adxrs290-pmdz project.
79 #endif
80 
83 
84 #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:50
adxrs290_gpio_extra_ip
struct max_gpio_init_param adxrs290_gpio_extra_ip
Definition: parameters.c:48
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:48
stm32_hal.h
huart5
UART_HandleTypeDef huart5