28#define MBED_PLATFORM 1
29#define STM32_PLATFORM 2
32#define CONTINUOUS_DATA_CAPTURE 0
33#define BURST_DATA_CAPTURE 1
36#define CONTROLLER_MODE 0
41#define BIT_BANGING_MODE 1
44#if !defined(DATA_CAPTURE_MODE)
45#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
49#if !defined(ACTIVE_PLATFORM)
50#define ACTIVE_PLATFORM MBED_PLATFORM
65#if defined (DEV_AD7134)
66#define ACTIVE_DEVICE_NAME "ad7134"
67#define HW_MEZZANINE_NAME "EVAL-AD7134ARDZ"
68#define ACTIVE_DEVICE_ID ID_AD7134
69#elif defined (DEV_AD4134)
70#define ACTIVE_DEVICE_NAME "ad4134"
71#define HW_MEZZANINE_NAME "EVAL-CN0561-ARDZ"
72#define ACTIVE_DEVICE_ID ID_AD4134
74#warning No / Unsupported ADxxxxy symbol defined.AD4134 defined
76#define ACTIVE_DEVICE_NAME "ad4134"
77#define HW_MEZZANINE_NAME "EVAL-CN0561-ARDZ"
78#define ACTIVE_DEVICE_ID ID_AD4134
84#if !defined(USE_PHY_COM_PORT)
85#define USE_VIRTUAL_COM_PORT
90#if !defined(INTERFACE_MODE)
91#if (ACTIVE_PLATFORM == STM32_PLATFORM)
92#define INTERFACE_MODE TDM_MODE
94#define INTERFACE_MODE BIT_BANGING_MODE
99#define BYTES_PER_SAMPLE sizeof(uint16_t)
101#if (ACTIVE_PLATFORM == STM32_PLATFORM)
104#define HW_CARRIER_NAME NUCLEO_H563ZI
107#define uart_extra_init_params stm32_uart_extra_init_params
108#define spi_extra_init_params stm32_spi_extra_init_params
109#define tdm_extra_init_params stm32_tdm_extra_init_params
110#define ext_int_extra_init_params stm32_trigger_gpio_irq_init_params
111#define gpio_pdn_extra_init_params stm32_pdn_extra_init_params
112#define i2c_extra_init_params stm32_i2c_extra_init_params
113#define tdm_platform_ops stm32_tdm_platform_ops
114#define spi_ops stm32_spi_ops
115#define uart_ops stm32_uart_ops
116#define gpio_ops stm32_gpio_ops
117#define trigger_gpio_irq_ops stm32_gpio_irq_ops
118#define i2c_ops stm32_i2c_ops
120#define ACTIVE_PLATFORM MBED_PLATFORM
121#include "app_config_mbed.h"
123#define HW_CARRIER_NAME TARGET_NAME
126#define ext_int_extra_init_params mbed_ext_int_extra_init_params
127#define uart_extra_init_params mbed_uart_extra_init_params
128#define vcom_extra_init_params mbed_vcom_extra_init_params
129#define spi_extra_init_params mbed_spi_extra_init_params
130#define i2c_extra_init_params mbed_i2c_extra_init_params
131#define pwm_extra_init_params mbed_pwm_extra_init_params
132#define gpio_pdn_extra_init_params mbed_pdn_extra_init_params
133#define trigger_gpio_irq_ops mbed_gpio_irq_ops
134#define i2c_ops mbed_i2c_ops
135#define gpio_ops mbed_gpio_ops
136#define spi_ops mbed_spi_ops
137#define uart_ops mbed_uart_ops
138#define vcom_ops mbed_virtual_com_ops
139#define pwm_ops mbed_pwm_ops
140#define trigger_gpio_handle 0
145#define ADC_RESOLUTION 16
148#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
151#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
154#define AD7134_NUM_CHANNELS 4
157#define DEVICE_NAME "DEV_AD7134"
159#if !defined(PLATFORM_NAME)
160#if (ACTIVE_PLATFORM == MBED_PLATFORM)
161#define PLATFORM_NAME HW_CARRIER_NAME
162#elif (ACTIVE_PLATFORM == STM32_PLATFORM)
163#define PLATFORM_NAME "NUCLEO_L552ZE"
168#define FIRMWARE_NAME "ad7134_iio"
173#define VIRTUAL_COM_PORT_VID 0x0456
174#define VIRTUAL_COM_PORT_PID 0xb66c
175#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
178#define IIO_UART_BAUD_RATE (230400)
186#define AD7134_ASRC_MODE CONTROLLER_MODE
192#if defined(USE_PHY_COM_PORT)
194#if (ACTIVE_PLATFORM == MBED_PLATFORM)
195#define CONSOLE_STDIO_PORT_AVAILABLE
199#define CONSOLE_STDIO_PORT_AVAILABLE
int32_t init_system(void)
Initialize the system peripherals.
Definition app_config.c:185
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:176
struct no_os_uart_desc * uart_iio_com_desc
Definition app_config.c:164
int32_t init_pwm(void)
Initialize the PWM interface.
Definition app_config.c:267
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
struct no_os_gpio_init_param pdn_init_param
Definition app_config.c:151
struct no_os_tdm_desc * ad7134_tdm_desc
Definition app_config.c:119
struct no_os_irq_ctrl_desc * external_int_desc
Definition app_config.c:188
Header file for STM32 platform configurations.