27#define MBED_PLATFORM 1
30#define BURST_DATA_CAPTURE 0
31#define CONTINUOUS_DATA_CAPTURE 1
40#define ACTIVE_DEVICE_NAME "ad7380-2"
43#if !defined(ACTIVE_PLATFORM)
44#define ACTIVE_PLATFORM MBED_PLATFORM
48#if !defined(DATA_CAPTURE_MODE)
49#define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
55#if !defined(USE_PHY_COM_PORT)
56#define USE_VIRTUAL_COM_PORT
59#if (ACTIVE_PLATFORM == MBED_PLATFORM)
62#define HW_CARRIER_NAME TARGET_NAME
65#define pwm_extra_init_params mbed_pwm_extra_init_params
66#define uart_extra_init_params mbed_uart_extra_init_params
67#define vcom_extra_init_params mbed_vcom_extra_init_params
68#define spi_extra_init_params mbed_spi_extra_init_params
69#define i2c_extra_init_params mbed_i2c_extra_init_params
70#define trigger_gpio_extra_init_params mbed_trigger_gpio_extra_init_params
71#define trigger_gpio_irq_extra_params mbed_trigger_gpio_irq_init_params
72#define trigger_gpio_ops mbed_gpio_ops
73#define spi_ops mbed_spi_ops
74#define i2c_ops mbed_i2c_ops
75#define uart_ops mbed_uart_ops
76#define vcom_ops mbed_virtual_com_ops
77#define trigger_gpio_irq_ops mbed_gpio_irq_ops
78#define trigger_gpio_handle 0
81#define TRIGGER_GPIO_PORT 0
82#define TRIGGER_GPIO_PIN PWM_TRIGGER
83#define TRIGGER_INT_ID GPIO_IRQ_ID1
85#error "No/Invalid active platform selected"
89#define ADC_RESOLUTION 16
95#define ADC_REF_VOLTAGE 3.3
98#define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
101#define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
104#define IIO_UART_BAUD_RATE (230400)
107#define DEVICE_NAME "DEV_AD7380_2"
110#define FIRMWARE_NAME "ad738x_iio"
112#if !defined(PLATFORM_NAME)
113#define PLATFORM_NAME HW_CARRIER_NAME
119#define VIRTUAL_COM_PORT_VID 0x0456
120#define VIRTUAL_COM_PORT_PID 0xb66c
122#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
125#if defined(USE_PHY_COM_PORT)
127#if (ACTIVE_PLATFORM == MBED_PLATFORM)
128#define CONSOLE_STDIO_PORT_AVAILABLE
132#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_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
struct no_os_uart_desc * uart_iio_com_desc
Definition app_config.c:164
struct no_os_uart_desc * uart_console_stdio_desc
Definition app_config.c:100
Header file for Mbed platform configurations.