no-OS
Loading...
Searching...
No Matches
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 ((uint32_t *)in_buff)
51
52#define UART_IRQ_ID UART5_IRQn
53
54#define UART_DEVICE_ID 5
55#define UART_BAUDRATE 230400
56#define UART_EXTRA &pulsar_adc_uart_extra_ip
57#define UART_OPS &stm32_uart_ops
58
59/*
60 * spi cs is not used, but current no-os mandates
61 * a cs to be specifed. So we need to add some
62 * dummy gpio value
63 */
64#define SPI_DEVICE_ID 1
65#define SPI_BAUDRATE 20000000
66#define SPI_CS 14
67#define SPI_CS_PORT GPIO_PORT_A
68#define SPI_OPS &stm32_spi_ops
69#define SPI_EXTRA &pulsar_adc_spi_extra_ip
70
71#define GPIO_CNV 15
72#define GPIO_OPS &stm32_gpio_ops
73#define GPIO_CNV_PORT GPIO_PORT_A
74
75#define GPIO_PORT_A 0
76
77#define PULSAR_ADC_ADC_REF_VOLTAGE 5000
80
81#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