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