no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
33 #ifndef __PARAMETERS_H__
34 #define __PARAMETERS_H__
35 
36 #include "stm32_hal.h"
37 #include "stm32_irq.h"
38 #include "stm32_gpio_irq.h"
39 #include "stm32_spi.h"
40 #include "stm32_gpio.h"
41 #include "stm32_uart.h"
42 #include "stm32_uart_stdio.h"
43 
44 extern UART_HandleTypeDef huart2;
45 
46 #ifdef IIO_SUPPORT
47 #define INTC_DEVICE_ID 0
48 #define IIO_APP_HUART (&huart2)
49 #endif
50 #define UART_IRQ_ID USART2_IRQn
51 #define UART_DEVICE_ID 2
52 #define UART_BAUDRATE 115200
53 #define UART_OPS &stm32_uart_ops
54 #define UART_EXTRA &max14906_uart_extra_ip
55 
56 #ifdef BASIC_EXAMPLE
57 extern struct stm32_gpio_irq_init_param max14906_gpio_irq_extra_ip;
58 
59 #define GPIO_IRQ_ID 0 /* Pin 0 */
60 #define GPIO_IRQ_OPS &stm32_gpio_irq_ops
61 #define GPIO_IRQ_EXTRA &max14906_gpio_irq_extra_ip
62 
63 #define GPIO_OPS &stm32_gpio_ops
64 #define GPIO_EXTRA NULL
65 
66 #define GPIO_FAULT_PORT_NUM 0
67 #define GPIO_FAULT_PIN_NUM 0
68 #endif
69 
70 #define SPI_DEVICE_ID 1
71 #define SPI_CS 4
72 #define SPI_CS_PORT 0
73 #define SPI_OPS &stm32_spi_ops
74 #define SPI_EXTRA &max14906_spi_extra_ip
75 #define SPI_BAUDRATE 100000
76 
79 
80 #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
max14906_spi_extra_ip
struct stm32_spi_init_param max14906_spi_extra_ip
Definition: parameters.c:45
stm32_spi.h
Header file for the stm32 spi driver.
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.
max14906_uart_extra_ip
struct stm32_uart_init_param max14906_uart_extra_ip
Definition: parameters.c:35
stm32_irq.h
Header file for stm32 irq specifics.
stm32_gpio.h
Header file for stm32 gpio specifics.
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
stm32_hal.h
huart2
UART_HandleTypeDef huart2