no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
parameters.h
Go to the documentation of this file.
1/***************************************************************************/
34#ifndef __PARAMETERS_H__
35#define __PARAMETERS_H__
36
37#include "stm32_hal.h"
38#include "stm32_irq.h"
39#include "stm32_gpio_irq.h"
40#include "stm32_spi.h"
41#include "stm32_gpio.h"
42#include "stm32_uart.h"
43#include "stm32_uart_stdio.h"
44
45extern UART_HandleTypeDef huart5;
46#define SAMPLES_PER_CHANNEL_PLATFORM 2000
47#define MAX_SIZE_BASE_ADDR (SAMPLES_PER_CHANNEL_PLATFORM * sizeof(uint32_t))
48extern uint8_t in_buff[];
49
50#define ADC_DDR_BASEADDR in_buff
51
52#ifdef IIO_SUPPORT
53#define INTC_DEVICE_ID 0
54#endif
55
56#define UART_IRQ_ID UART5_IRQn
57
58#define UART_DEVICE_ID 5
59#define UART_BAUDRATE 230400
60#define UART_EXTRA &pulsar_adc_uart_extra_ip
61#define UART_OPS &stm32_uart_ops
62
63/*
64 * spi cs is not used, but current no-os mandates
65 * a cs to be specifed. So we need to add some
66 * dummy gpio value
67 */
68#define SPI_DEVICE_ID 1
69#define SPI_BAUDRATE 20000000
70#define SPI_CS 14
71#define SPI_CS_PORT GPIO_PORT_A
72#define SPI_OPS &stm32_spi_ops
73#define SPI_EXTRA &pulsar_adc_spi_extra_ip
74
75#define GPIO_CNV 15
76#define GPIO_OPS &stm32_gpio_ops
77#define GPIO_CNV_PORT GPIO_PORT_A
78
79#define GPIO_PORT_A 0
80
81#define PULSAR_ADC_ADC_REF_VOLTAGE 5000
84
85#endif /* __PARAMETERS_H__ */
UART_HandleTypeDef huart5
struct stm32_uart_init_param pulsar_adc_uart_extra_ip
Definition parameters.c:38
struct stm32_spi_init_param pulsar_adc_spi_extra_ip
Definition parameters.c:42
Header file for stm32 gpio specifics.
Header file for stm32 gpio irq specifics.
Header file for stm32 irq specifics.
Header file for the stm32 spi driver.
Header file of UART driver for STM32.
Header file of stm32 UART driver stdout/stdin redirection.
Structure holding the initialization parameters for stm32 platform specific SPI parameters.
Definition stm32_spi.h:51
Specific initialization parameters for stm32 UART.
Definition stm32_uart.h:46