27#define CONTINUOUS_DATA_CAPTURE 0
28#define BURST_DATA_CAPTURE 1
31#define CONTROLLER_MODE 0
36#define BIT_BANGING_MODE 1
39#if !defined(DATA_CAPTURE_MODE)
40#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
44#if !defined(ACTIVE_PLATFORM)
45#define ACTIVE_PLATFORM STM32_PLATFORM
60#if defined (DEV_AD7134)
61#define ACTIVE_DEVICE_NAME "ad7134"
62#define HW_MEZZANINE_NAME "EVAL-AD7134ARDZ"
63#define ACTIVE_DEVICE_ID ID_AD7134
64#elif defined (DEV_AD4134)
65#define ACTIVE_DEVICE_NAME "ad4134"
66#define HW_MEZZANINE_NAME "EVAL-CN0561-ARDZ"
67#define ACTIVE_DEVICE_ID ID_AD4134
69#define INFO_MSG(x) _Pragma(#x)
70INFO_MSG(message(
"No / Unsupported ADxxxxy symbol defined.AD4134 defined"))
72#define ACTIVE_DEVICE_NAME "ad4134"
73#define HW_MEZZANINE_NAME "EVAL-CN0561-ARDZ"
74#define ACTIVE_DEVICE_ID ID_AD4134
80#if !defined(USE_PHY_COM_PORT)
81#define USE_VIRTUAL_COM_PORT
88#if !defined(INTERFACE_MODE)
89#define INTERFACE_MODE BIT_BANGING_MODE
93#define BYTES_PER_SAMPLE sizeof(uint16_t)
95#if (ACTIVE_PLATFORM == STM32_PLATFORM)
99#define HW_CARRIER_NAME SDP_K1
101#define HW_CARRIER_NAME NUCLEO_H563ZI
105#define vcom_extra_init_params stm32_vcom_extra_init_params
106#define uart_extra_init_params stm32_uart_extra_init_params
107#define spi_extra_init_params stm32_spi_extra_init_params
108#define tdm_extra_init_params stm32_tdm_extra_init_params
109#define ext_int_extra_init_params stm32_trigger_gpio_irq_init_params
110#define gpio_pdn_extra_init_params stm32_pdn_extra_init_params
111#define gpio_input_extra_init_params stm32_input_extra_init_params
112#define gpio_output_extra_init_params stm32_output_extra_init_params
113#define i2c_extra_init_params stm32_i2c_extra_init_params
114#define tdm_platform_ops stm32_tdm_platform_ops
115#define spi_ops stm32_spi_ops
116#define uart_ops stm32_uart_ops
117#define gpio_ops stm32_gpio_ops
118#define pwm_ops stm32_pwm_ops
119#define pwm_extra_init_params stm32_pwm_extra_init_params
120#define trigger_gpio_irq_ops stm32_gpio_irq_ops
122#define vcom_ops stm32_usb_uart_ops
124#define i2c_ops stm32_i2c_ops
129#define ADC_RESOLUTION 16
132#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
135#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
138#define AD7134_NUM_CHANNELS 4
141#define DEVICE_NAME "DEV_AD7134"
143#if !defined(PLATFORM_NAME)
144#if (ACTIVE_PLATFORM == STM32_PLATFORM)
145#define PLATFORM_NAME HW_CARRIER_NAME
150#define FIRMWARE_NAME "ad7134_iio"
155#define VIRTUAL_COM_PORT_VID 0x0456
156#define VIRTUAL_COM_PORT_PID 0xb66c
157#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
160#define IIO_UART_BAUD_RATE (230400)
167#define AD7134_ASRC_MODE CONTROLLER_MODE
173#if defined(USE_PHY_COM_PORT)
175#if (ACTIVE_PLATFORM == STM32_PLATFORM && INTERFACE_MODE == BIT_BANGING_MODE)
176#define CONSOLE_STDIO_PORT_AVAILABLE
180#define CONSOLE_STDIO_PORT_AVAILABLE
192extern struct no_os_pwm_desc *
pwm_desc;
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:170
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:158
int32_t init_pwm(void)
Initialize the PWM interface.
Definition app_config.c:259
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:187
#define INFO_MSG(x)
Definition app_config.h:69
struct no_os_tdm_desc * ad7134_tdm_desc
Definition app_config.c:183
struct no_os_irq_ctrl_desc * external_int_desc
Definition app_config.c:218
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.