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_gpio_irq.h"
49 #include "stm32_spi.h"
50 #include "stm32_gpio.h"
51 #include "stm32_uart.h"
52 #include "stm32_uart_stdio.h"
53 
54 /******************************************************************************/
55 /********************** Macros and Constants Definitions **********************/
56 /******************************************************************************/
57 extern UART_HandleTypeDef huart5;
58 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
59 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * sizeof(uint32_t))
60 extern uint8_t in_buff[];
61 
62 #define ADC_DDR_BASEADDR in_buff
63 
64 #ifdef IIO_SUPPORT
65 #define INTC_DEVICE_ID 0
66 #endif
67 
68 #define UART_IRQ_ID UART5_IRQn
69 
70 #define UART_DEVICE_ID 5
71 #define UART_BAUDRATE 230400
72 #define UART_EXTRA &pulsar_adc_uart_extra_ip
73 #define UART_OPS &stm32_uart_ops
74 
75 /*
76  * spi cs is not used, but current no-os mandates
77  * a cs to be specifed. So we need to add some
78  * dummy gpio value
79  */
80 #define SPI_DEVICE_ID 1
81 #define SPI_BAUDRATE 20000000
82 #define SPI_CS 14
83 #define SPI_CS_PORT GPIO_PORT_A
84 #define SPI_OPS &stm32_spi_ops
85 #define SPI_EXTRA &pulsar_adc_spi_extra_ip
86 
87 #define GPIO_CNV 15
88 #define GPIO_OPS &stm32_gpio_ops
89 #define GPIO_CNV_PORT GPIO_PORT_A
90 
91 #define GPIO_PORT_A 0
92 
93 #define PULSAR_ADC_ADC_REF_VOLTAGE 5000
96 
97 #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_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.
pulsar_adc_uart_extra_ip
struct stm32_uart_init_param pulsar_adc_uart_extra_ip
Definition: parameters.c:50
stm32_irq.h
Header file for stm32 irq specifics.
pulsar_adc_spi_extra_ip
struct stm32_spi_init_param pulsar_adc_spi_extra_ip
Definition: parameters.c:54
stm32_gpio.h
Header file for stm32 gpio specifics.
stm32_gpio_irq.h
Header file for stm32 gpio irq specifics.
huart5
UART_HandleTypeDef huart5
stm32_hal.h
in_buff
uint8_t in_buff[]
Definition: common_data.c:52