no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
41 #ifndef __PARAMETERS_H__
42 #define __PARAMETERS_H__
43 
44 /******************************************************************************/
45 /***************************** Include Files **********************************/
46 /******************************************************************************/
47 #include "stm32_hal.h"
48 #include "stm32_irq.h"
49 #include "stm32_gpio_irq.h"
50 #include "stm32_spi.h"
51 #include "stm32_gpio.h"
52 #include "stm32_uart.h"
53 #include "stm32_uart_stdio.h"
54 
55 /******************************************************************************/
56 /********************** Macros and Constants Definitions **********************/
57 /******************************************************************************/
58 extern UART_HandleTypeDef huart5;
59 
60 #define UART_IRQ_ID UART5_IRQn
61 #define INTC_DEVICE_ID 0
62 
63 #define UART_DEVICE_ID 5
64 #define UART_BAUDRATE 230400
65 #define UART_EXTRA &ad7616_uart_extra_ip
66 #define UART_OPS &stm32_uart_ops
67 
68 #define GPIO_OPS &stm32_gpio_ops
69 #define GPIO_PORT_A 0
70 #define GPIO_PORT_G 6
71 #define GPIO_BUSY_PORT GPIO_PORT_A
72 #define GPIO_BUSY_NB 10
73 #define GPIO_RESET_PORT GPIO_PORT_G
74 #define GPIO_RESET_NB 10
75 #define GPIO_CONVST_PORT GPIO_PORT_A
76 #define GPIO_CONVST_NB 11
77 
78 #define SPI_DEVICE_ID 1
79 #define SPI_BAUDRATE 22500000
80 #define SPI_CS 15
81 #define SPI_CS_PORT GPIO_PORT_A
82 #define SPI_OPS &stm32_spi_ops
83 #define SPI_EXTRA &ad7616_spi_extra_ip
84 
88 
89 #endif /* __PARAMETERS_H__ */
stm32_spi_init_param
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition: stm32_spi.h:57
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
ad7616_uart_extra_ip
struct stm32_uart_init_param ad7616_uart_extra_ip
Definition: parameters.c:49
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.
stm32_gpio.h
Header file for stm32 gpio specifics.
ad7616_gpio_convst_extra_ip
struct stm32_gpio_init_param ad7616_gpio_convst_extra_ip
Definition: parameters.c:57
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
ad7616_spi_extra_ip
struct stm32_spi_init_param ad7616_spi_extra_ip
Definition: parameters.c:53
huart5
UART_HandleTypeDef huart5
stm32_hal.h