27#define MBED_PLATFORM 1
28#define STM32_PLATFORM 2
31#if !defined(ACTIVE_PLATFORM)
32#define ACTIVE_PLATFORM MBED_PLATFORM
36#define CONTINUOUS_DATA_CAPTURE 0
37#define BURST_DATA_CAPTURE 1
47#define IIO_CLIENT_REMOTE 0
48#define IIO_CLIENT_LOCAL 1
53#if !defined(USE_PHY_COM_PORT)
54#define USE_VIRTUAL_COM_PORT
58#if !defined(ACTIVE_IIO_CLIENT)
59#define ACTIVE_IIO_CLIENT IIO_CLIENT_REMOTE
73#if defined(DEV_AD7124_4)
74#define DEVICE_NAME "DEV_AD7124_4"
75#define ACTIVE_DEVICE_NAME "ad7124-4"
76#define NUM_OF_CHANNELS 8
77#define HW_MEZZANINE_NAME "EVAL-AD7124-4ASDZ"
79#elif defined(DEV_AD7124_8)
80#define DEVICE_NAME "DEV_AD7124_8"
81#define ACTIVE_DEVICE_NAME "ad7124-8"
82#define NUM_OF_CHANNELS 16
83#define HW_MEZZANINE_NAME "EVAL-AD7124-8ASDZ"
86#warning No/Unsupported ADxxxx symbol defined. AD7124_4 defined
88#define DEVICE_NAME "DEV_AD7124_4"
89#define ACTIVE_DEVICE_NAME "ad7124-4"
90#define NUM_OF_CHANNELS 8
91#define HW_MEZZANINE_NAME "EVAL-AD7124-4ASDZ"
95#define PSUEDO_DIFFERENTIAL_MODE 0
96#define DIFFERENTIAL_MODE 1
102#if !defined(INPUT_MODE)
103#define INPUT_MODE PSEUDO_DIFFERENTIAL_MODE
107#define ADC_RESOLUTION 24
110#define ADC_MAX_COUNT_UNIPOLAR (int32_t)((1 << ADC_RESOLUTION) - 1)
113#define ADC_MAX_COUNT_BIPOLAR (int32_t)(1 << (ADC_RESOLUTION-1))
116#if (ACTIVE_PLATFORM == MBED_PLATFORM)
118#define HW_CARRIER_NAME TARGET_NAME
119#define uart_extra_init_params mbed_uart_extra_init_params
120#define uart_ops mbed_uart_ops
121#define vcom_extra_init_params mbed_vcom_extra_init_params
122#define vcom_ops mbed_virtual_com_ops
123#define spi_extra_init_params mbed_spi_extra_init_params
124#define i2c_extra_init_params mbed_i2c_extra_init_params
125#define spi_platform_ops mbed_spi_ops
126#define i2c_ops mbed_i2c_ops
127#define gpio_platform_ops mbed_gpio_ops
128#define irq_platform_ops mbed_gpio_irq_ops
129#define ext_int_extra_init_params mbed_trigger_gpio_irq_init_params
130#define IRQ_INT_ID GPIO_IRQ_ID1
131#define trigger_gpio_handle 0
132#define ticker_int_extra_init_params mbed_ticker_int_extra_init_params
133#elif (ACTIVE_PLATFORM == STM32_PLATFORM)
134#include "app_config_stm32.h"
136#define spi_extra_init_params stm32_spi_extra_init_params
137#define uart_extra_init_params stm32_uart_extra_init_params
138#define gpio_platform_ops stm32_gpio_ops
139#define spi_platform_ops stm32_spi_ops
140#define uart_ops stm32_uart_ops
141#define i2c_ops stm32_i2c_ops
142#define i2c_extra_init_params stm32_i2c_extra_init_params
143#define irq_platform_ops stm32_gpio_irq_ops
144#define ext_int_extra_init_params stm32_trigger_gpio_irq_init_params
145#define IRQ_INT_ID RDY_PIN
146#define trigger_gpio_handle 0
148#error "No/Invalid active platform selected"
153#define FIRMWARE_NAME "ad7124_iio"
155#if !defined(PLATFORM_NAME)
156#define PLATFORM_NAME HW_CARRIER_NAME
162#define VIRTUAL_COM_PORT_VID 0x0456
163#define VIRTUAL_COM_PORT_PID 0xb66c
164#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
167#define IIO_UART_BAUD_RATE (230400)
170#if defined(USE_PHY_COM_PORT)
172#if (ACTIVE_PLATFORM == MBED_PLATFORM)
173#define CONSOLE_STDIO_PORT_AVAILABLE
177#define CONSOLE_STDIO_PORT_AVAILABLE
181#if !defined(DATA_CAPTURE_MODE)
182#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
185#define LVGL_TICK_TIME_US 5000
186#define LVGL_TICK_TIME_MS (LVGL_TICK_TIME_US / 1000)
195extern struct no_os_gpio_desc *
csb_gpio;
196extern 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:176
void ticker_callback(void *ctx)
This is an ISR (Interrupt Service Routine) for Ticker object.
Definition ad4170_iio.c:2859
struct no_os_gpio_desc * csb_gpio
Definition app_config.c:51
void lvgl_tick_callback(void *ctx)
lvgl tick update callback function for pocket lab
Definition app_config.c:141
void data_capture_callback(void *ctx)
Interrupt Service Routine to monitor data ready event.
Definition ad405x_iio.c:1271
struct no_os_gpio_desc * rdy_gpio
Definition app_config.c:54
Header file for Mbed platform configurations.