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