28#if !defined(ACTIVE_PLATFORM)
29#define ACTIVE_PLATFORM STM32_PLATFORM
33#define CONTINUOUS_DATA_CAPTURE 0
34#define BURST_DATA_CAPTURE 1
46#define IIO_CLIENT_REMOTE 1
47#define IIO_CLIENT_LOCAL 2
50#if !defined(ACTIVE_IIO_CLIENT)
51#define ACTIVE_IIO_CLIENT IIO_CLIENT_REMOTE
60#if !defined(USE_PHY_COM_PORT)
61#define USE_VIRTUAL_COM_PORT
72#if defined(DEV_AD7124_4)
73#define DEVICE_NAME "DEV_AD7124_4"
74#define ACTIVE_DEVICE_NAME "ad7124-4"
75#define NUM_OF_CHANNELS 8
76#define HW_MEZZANINE_NAME "EVAL-AD7124-4ASDZ"
78#elif defined(DEV_AD7124_8)
79#define DEVICE_NAME "DEV_AD7124_8"
80#define ACTIVE_DEVICE_NAME "ad7124-8"
81#define NUM_OF_CHANNELS 16
82#define HW_MEZZANINE_NAME "EVAL-AD7124-8ASDZ"
85#warning No/Unsupported ADxxxx symbol defined. AD7124_4 defined
87#define DEVICE_NAME "DEV_AD7124_4"
88#define ACTIVE_DEVICE_NAME "ad7124-4"
89#define NUM_OF_CHANNELS 8
90#define HW_MEZZANINE_NAME "EVAL-AD7124-4ASDZ"
94#define PSUEDO_DIFFERENTIAL_MODE 0
95#define DIFFERENTIAL_MODE 1
101#if !defined(INPUT_MODE)
102#define INPUT_MODE PSEUDO_DIFFERENTIAL_MODE
106#define ADC_RESOLUTION 24
109#define ADC_MAX_COUNT_UNIPOLAR (int32_t)((1 << ADC_RESOLUTION) - 1)
112#define ADC_MAX_COUNT_BIPOLAR (int32_t)(1 << (ADC_RESOLUTION-1))
115#if (ACTIVE_PLATFORM == STM32_PLATFORM)
118#define spi_extra_init_params stm32_spi_extra_init_params
119#define uart_extra_init_params stm32_uart_extra_init_params
120#define gpio_platform_ops stm32_gpio_ops
121#define spi_platform_ops stm32_spi_ops
122#define uart_ops stm32_uart_ops
123#define i2c_ops stm32_i2c_ops
124#define i2c_extra_init_params stm32_i2c_extra_init_params
125#define irq_platform_ops stm32_gpio_irq_ops
126#define ext_int_extra_init_params stm32_trigger_gpio_irq_init_params
127#define IRQ_INT_ID RDY_PIN
128#define ticker_int_extra_init_params 0
129#define trigger_gpio_handle 0
131#error "No/Invalid active platform selected"
135#if !defined(PLATFORM_NAME)
136#define PLATFORM_NAME HW_CARRIER_NAME
140#define IIO_UART_BAUD_RATE (230400)
143#if defined(USE_VIRTUAL_COM_PORT)
145#define CONSOLE_STDIO_PORT_AVAILABLE
149#if !defined(DATA_CAPTURE_MODE)
150#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
153#define LVGL_TICK_TIME_US 5000
154#define LVGL_TICK_TIME_MS (LVGL_TICK_TIME_US / 1000)
163extern struct no_os_gpio_desc *
csb_gpio;
164extern struct no_os_gpio_desc *
rdy_gpio;
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 ticker_callback(void *ctx)
This is an ISR (Interrupt Service Routine) for Ticker object.
Definition ad4170_iio.c:3334
struct no_os_gpio_desc * csb_gpio
Definition app_config.c:51
void lvgl_tick_callback(void *ctx)
Definition app_config.c:164
void data_capture_callback(void *ctx)
Interrupt Service Routine to monitor data ready event.
Definition ad405x_iio.c:1023
struct no_os_gpio_desc * rdy_gpio
Definition app_config.c:54
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.