28#define CONTINUOUS_DATA_CAPTURE 0
29#define BURST_DATA_CAPTURE 1
44#if defined(DEV_AD7689)
45#define ACTIVE_DEVICE ID_AD7689
46#define ACTIVE_DEVICE_NAME "ad7689"
47#define DEVICE_NAME "DEV_AD7689"
48#elif defined(DEV_AD7682)
49#define ACTIVE_DEVICE ID_AD7682
50#define ACTIVE_DEVICE_NAME "ad7682"
51#define DEVICE_NAME "DEV_AD7682"
52#elif defined(DEV_AD7949)
53#define ACTIVE_DEVICE ID_AD7949
54#define ACTIVE_DEVICE_NAME "ad7949"
55#define DEVICE_NAME "DEV_AD7949"
56#elif defined(DEV_AD7699)
57#define ACTIVE_DEVICE ID_AD7699
58#define ACTIVE_DEVICE_NAME "ad7699"
59#define DEVICE_NAME "DEV_AD7699"
61#warning No/Unsupported device selected. AD7689 used as default.
63#define ACTIVE_DEVICE ID_AD7689
64#define ACTIVE_DEVICE_NAME "ad7689"
65#define DEVICE_NAME "DEV_AD7689"
69#if !defined(ACTIVE_PLATFORM)
70#define ACTIVE_PLATFORM STM32_PLATFORM
74#if !defined(DATA_CAPTURE_MODE)
75#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
81#if !defined(USE_PHY_COM_PORT)
82#define USE_VIRTUAL_COM_PORT
85#if(ACTIVE_PLATFORM == STM32_PLATFORM)
89#define pwm_extra_init_params stm32_pwm_extra_init_params
90#define vcom_extra_init_params stm32_vcom_extra_init_params
91#define uart_extra_init_params stm32_uart_extra_init_params
92#define uart_ops stm32_uart_ops
93#define spi_extra_init_params stm32_spi_extra_init_params
94#define i2c_extra_init_params stm32_i2c_extra_init_params
95#define pwm_gpio_extra_init_params stm32_pwm_gpio_extra_init_params
96#define trigger_gpio_irq_extra_params stm32_trigger_gpio_irq_init_params
97#define trigger_gpio_extra_init_params stm32_trigger_gpio_extra_init_params
98#define trigger_gpio_ops stm32_gpio_ops
99#define irq_ops stm32_gpio_irq_ops
100#define gpio_ops stm32_gpio_ops
101#define spi_ops stm32_spi_ops
102#define i2c_ops stm32_i2c_ops
103#define pwm_ops stm32_pwm_ops
104#define vcom_ops stm32_usb_uart_ops
105#define trigger_gpio_irq_ops stm32_gpio_irq_ops
106#define trigger_gpio_handle 0
107#define IRQ_INT_ID TRIGGER_INT_ID
109#error "No/Invalid active platform selected"
113#define HW_MEZZANINE_NAME "EVAL-AD7689-ARDZ"
116#if defined(DEV_AD7949)
117#define ADC_RESOLUTION 14
119#define ADC_RESOLUTION 16
123#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
126#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
129#if defined(DEV_AD7682)
130#define TEMPERATURE_CHN 4
131#define ADC_CHN_COUNT 5
133#define TEMPERATURE_CHN 8
134#define ADC_CHN_COUNT 9
139#define FIRMWARE_NAME "ad7689_iio"
141#if !defined(PLATFORM_NAME)
142#define PLATFORM_NAME HW_CARRIER_NAME
149#define VIRTUAL_COM_PORT_VID 0x0456
150#define VIRTUAL_COM_PORT_PID 0xb66c
152#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
155#define IIO_UART_BAUD_RATE (230400)
157#define CONSOLE_STDIO_PORT_AVAILABLE
int32_t init_pwm_trigger(void)
Initialize the PWM trigger contoller.
Definition app_config.c:161
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
struct no_os_gpio_desc * led_gpio_desc
Definition app_config.c:215
The file contain common macros that needs to be followed same across all the projects.
Header file for STM32 platform configurations.