no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __PARAMETERS_H__
35 #define __PARAMETERS_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "stm32_hal.h"
41 #include "stm32_irq.h"
42 #include "stm32_gpio_irq.h"
43 #include "stm32_spi.h"
44 #include "stm32_gpio.h"
45 #include "stm32_uart.h"
46 #include "stm32_uart_stdio.h"
47 
48 /******************************************************************************/
49 /********************** Macros and Constants Definitions **********************/
50 /******************************************************************************/
51 extern UART_HandleTypeDef huart5;
52 #define SAMPLES_PER_CHANNEL_PLATFORM 2000
53 #define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * sizeof(uint32_t))
54 extern uint8_t in_buff[];
55 
56 #define ADC_DDR_BASEADDR in_buff
57 
58 #ifdef IIO_SUPPORT
59 #define INTC_DEVICE_ID 0
60 #endif
61 
62 #define UART_IRQ_ID UART5_IRQn
63 
64 #define UART_DEVICE_ID 5
65 #define UART_BAUDRATE 230400
66 #define UART_EXTRA &pulsar_adc_uart_extra_ip
67 #define UART_OPS &stm32_uart_ops
68 
69 /*
70  * spi cs is not used, but current no-os mandates
71  * a cs to be specifed. So we need to add some
72  * dummy gpio value
73  */
74 #define SPI_DEVICE_ID 1
75 #define SPI_BAUDRATE 20000000
76 #define SPI_CS 14
77 #define SPI_CS_PORT GPIO_PORT_A
78 #define SPI_OPS &stm32_spi_ops
79 #define SPI_EXTRA &pulsar_adc_spi_extra_ip
80 
81 #define GPIO_CNV 15
82 #define GPIO_OPS &stm32_gpio_ops
83 #define GPIO_CNV_PORT GPIO_PORT_A
84 
85 #define GPIO_PORT_A 0
86 
87 #define PULSAR_ADC_ADC_REF_VOLTAGE 5000
90 
91 #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_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.
pulsar_adc_uart_extra_ip
struct stm32_uart_init_param pulsar_adc_uart_extra_ip
Definition: parameters.c:44
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:48
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:46