23#include "no_os_util.h"
30#define STM32_PLATFORM 1
33#define CONTINUOUS_DATA_CAPTURE 0
34#define BURST_DATA_CAPTURE 1
38#define SPI_INTERRUPT 1
45#if !defined(DATA_CAPTURE_MODE)
46#define DATA_CAPTURE_MODE BURST_DATA_CAPTURE
52#if !defined(ACTIVE_PLATFORM)
53#define ACTIVE_PLATFORM STM32_PLATFORM
60#if !defined(USE_PHY_COM_PORT)
61#define USE_VIRTUAL_COM_PORT
65#if defined(USE_PHY_COM_PORT)
67#if (ACTIVE_PLATFORM == STM32_PLATFORM)
68#define CONSOLE_STDIO_PORT_AVAILABLE
72#define CONSOLE_STDIO_PORT_AVAILABLE
80#if !defined(INTERFACE_MODE)
81#define INTERFACE_MODE SPI_DMA
87#define ADC_INTERNAL_VREF_MV 2500
94#if !defined(ADC_VREF_MV)
95#define ADC_VREF_MV ADC_INTERNAL_VREF_MV
102#define ADC_MIN_VREF 1.0
105#define ACTIVE_DEVICE_NAME "ad7091r-8"
106#define DEVICE_NAME "DEV_AD7091R_8"
107#define ACTIVE_DEVICE_ID AD7091R8
108#define ADC_RESOLUTION 12
111#define HW_MEZZANINE_NAME "EVAL-AD7091R-8ARDZ"
114#define ADC_MAX_COUNT (uint32_t)((1 << ADC_RESOLUTION) - 1)
116#define HW_CARRIER_NAME TARGET_NAME
118#define BYTES_PER_SAMPLE sizeof(uint16_t)
123#define IIO_UART_BAUD_RATE (230400)
126#define FIRMWARE_NAME "ad7091r_iio"
128#if !defined(PLATFORM_NAME)
129#define PLATFORM_NAME HW_CARRIER_NAME
135#define VIRTUAL_COM_PORT_VID 0x0456
136#define VIRTUAL_COM_PORT_PID 0xb66c
138#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
144#define CONV_TRIGGER_PERIOD_NSEC(x) (((float)(1.0 / x) * 1000000) * 1000)
145#define CONV_TRIGGER_DUTY_CYCLE_NSEC(x) (((float)PWM_DUTY_CYCLE_PERCENT / 100) * CONV_TRIGGER_PERIOD_NSEC(x))
151extern struct no_os_pwm_desc *
pwm_desc;
158#if (INTERFACE_MODE == SPI_DMA)
int32_t init_pwm_trigger(void)
Initialize the PWM trigger contoller.
Definition app_config.c:161
struct no_os_irq_ctrl_desc * trigger_irq_desc
Definition app_config.c:103
int32_t init_system(void)
Initialize the system peripherals.
Definition app_config.c:185
struct no_os_pwm_init_param pwm_init_params
Definition app_config.h:150
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:176
struct no_os_pwm_desc * tx_trigger_desc
Definition app_config.c:149
struct no_os_pwm_desc * pwm_desc
Definition app_config.c:106
struct no_os_uart_desc * uart_iio_com_desc
Definition app_config.c:164
struct no_os_gpio_init_param pwm_gpio_params
Definition app_config.h:181
struct no_os_gpio_init_param cs_pwm_gpio_params
Definition app_config.h:180
struct no_os_pwm_init_param cs_init_params
Definition app_config.c:133
volatile uint32_t * buff_start_addr
Definition ad405x_iio.c:170
int32_t data_read
Definition ad405x_iio.c:329
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
uint32_t global_nb_of_samples
Definition ad469x_iio.c:284
void burst_capture_callback(void *context)
Interrupt Service Routine to monitor end of conversion event.
Definition ad469x_iio.c:1037
volatile struct iio_device_data * global_iio_dev_data
Definition ad469x_iio.c:281
struct no_os_dma_init_param ad7091r_dma_init_param
Definition app_config.c:175
Header file for STM32 platform configurations.