27#define CONTINUOUS_DATA_CAPTURE 0
28#define BURST_DATA_CAPTURE 1
33#define FAST_50HZ_TEST 2
37#define UNIPOLAR_MODE 1
40#define DIFFERENTIAL_INPUT 0
41#define PSEUDO_DIFFERENTIAL_INPUT 1
44#if !defined(ACTIVE_PLATFORM)
45#define ACTIVE_PLATFORM STM32_PLATFORM
49#if !defined(DATA_CAPTURE_MODE)
50#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
56#if !defined(USE_PHY_COM_PORT)
57#define USE_VIRTUAL_COM_PORT
64#if (ACTIVE_PLATFORM == STM32_PLATFORM)
67#define gpio_ops stm32_gpio_ops
68#define spi_ops stm32_spi_ops
69#define i2c_ops stm32_i2c_ops
70#define uart_ops stm32_uart_ops
71#define irq_platform_ops stm32_gpio_irq_ops
72#define trigger_gpio_irq_ops stm32_gpio_irq_ops
73#define TRIGGER_INT_ID RDY_PIN
74#define trigger_gpio_handle 0
75#define spi_extra_init_params stm32_spi_extra_init_params
76#define uart_extra_init_params stm32_uart_extra_init_params
77#define i2c_extra_init_params stm32_i2c_extra_init_params
78#define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params
79#define gpio_sync_init_params stm32_gpio_sync_extra_init_params
81#error "No/Invalid active platform selected"
92#if defined(DEV_AD7190)
93#define ACTIVE_DEVICE_NAME "ad7190"
94#define DEVICE_NAME "DEV_AD7190"
95#define HW_MEZZANINE_NAME "EVAL-AD7190-ASDZ"
96#elif defined(DEV_AD7192)
97#define ACTIVE_DEVICE_NAME "ad7192"
98#define DEVICE_NAME "DEV_AD7192"
99#define HW_MEZZANINE_NAME "EVAL-AD7192-ASDZ"
100#elif defined(DEV_AD7193)
101#define ACTIVE_DEVICE_NAME "ad7193"
102#define DEVICE_NAME "DEV_AD7193"
103#define HW_MEZZANINE_NAME "EVAL-AD7193-ASDZ"
104#elif defined(DEV_AD7194)
105#define ACTIVE_DEVICE_NAME "ad7194"
106#define DEVICE_NAME "DEV_AD7194"
107#define HW_MEZZANINE_NAME "EVAL-AD7194ASDZ"
108#elif defined(DEV_AD7195)
109#define ACTIVE_DEVICE_NAME "ad7195"
110#define DEVICE_NAME "DEV_AD7195"
111#define HW_MEZZANINE_NAME "EVAL-AD7195-ASDZ"
113#warning No/Unsupported ADxxxxy symbol defined. AD7193 defined
115#define ACTIVE_DEVICE_NAME "ad7193"
116#define DEVICE_NAME "DEV_AD7193"
117#define HW_MEZZANINE_NAME "EVAL-AD7193-ASDZ"
120#if defined(DEV_AD7190) || defined(DEV_AD7192) || defined(DEV_AD7195)
121#define NO_OF_CHANNELS 4
122#elif defined(DEV_AD7194)
123#define NO_OF_CHANNELS 16
125#define NO_OF_CHANNELS 8
127#define ADC_RESOLUTION 24
130#if !defined(ACTIVE_MODE)
131#define ACTIVE_MODE NORMAL_MODE
148#if (ACTIVE_MODE == NORMAL_MODE)
149#define POLARITY_CONFIG UNIPOLAR_MODE
151#define POLARITY_CONFIG BIPOLAR_MODE
172#if (ACTIVE_MODE == NORMAL_MODE)
173#define INPUT_CONFIG PSEUDO_DIFFERENTIAL_INPUT
175#define INPUT_CONFIG DIFFERENTIAL_INPUT
179#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
182#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
185#define IIO_UART_BAUD_RATE (230400)
188#define FIRMWARE_NAME "ad719x_iio"
191#if !defined(PLATFORM_NAME)
192#define PLATFORM_NAME HW_CARRIER_NAME
198#define VIRTUAL_COM_PORT_VID 0x0456
199#define VIRTUAL_COM_PORT_PID 0xb66c
201#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
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_uart_desc * uart_desc
Definition app_config.c:97
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:170
void burst_capture_callback(void *context)
Interrupt Service Routine to monitor end of conversion event.
Definition ad469x_iio.c:1037
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.