25 #define MBED_PLATFORM 1
28 #define CONTINUOUS_DATA_CAPTURE 0
29 #define BURST_DATA_CAPTURE 1
34 #define FAST_50HZ_TEST 2
37 #define BIPOLAR_MODE 0
38 #define UNIPOLAR_MODE 1
41 #define DIFFERENTIAL_INPUT 0
42 #define PSEUDO_DIFFERENTIAL_INPUT 1
45 #if !defined(ACTIVE_PLATFORM)
46 #define ACTIVE_PLATFORM MBED_PLATFORM
50 #if !defined(DATA_CAPTURE_MODE)
51 #define DATA_CAPTURE_MODE CONTINUOUS_DATA_CAPTURE
57 #if !defined(USE_PHY_COM_PORT)
58 #define USE_VIRTUAL_COM_PORT
63 #define STR(s) XSTR(s)
65 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
67 #define HW_CARRIER_NAME TARGET_NAME
70 #define spi_extra_init_params mbed_spi_extra_init_params
71 #if defined(USE_VIRTUAL_COM_PORT)
72 #define uart_extra_init_params mbed_vcom_extra_init_params
73 #define uart_ops mbed_virtual_com_ops
75 #define uart_extra_init_params mbed_uart_extra_init_params
76 #define uart_ops mbed_uart_ops
78 #define i2c_extra_init_params mbed_i2c_extra_init_params
79 #define gpio_sync_init_params mbed_gpio_sync_extra_init_params
80 #define trigger_gpio_irq_extra_params mbed_trigger_gpio_irq_init_params
81 #define gpio_ops mbed_gpio_ops
82 #define irq_ops mbed_irq_ops
83 #define spi_ops mbed_spi_ops
84 #define i2c_ops mbed_i2c_ops
85 #define trigger_gpio_irq_ops mbed_gpio_irq_ops
86 #define trigger_gpio_handle 0
87 #define TRIGGER_INT_ID GPIO_IRQ_ID1
89 #error "No/Invalid active platform selected"
100 #if defined(DEV_AD7190)
101 #define ACTIVE_DEVICE_NAME "ad7190"
102 #define DEVICE_NAME "DEV_AD7190"
103 #define HW_MEZZANINE_NAME "EVAL-AD7190-ASDZ"
104 #elif defined(DEV_AD7192)
105 #define ACTIVE_DEVICE_NAME "ad7192"
106 #define DEVICE_NAME "DEV_AD7192"
107 #define HW_MEZZANINE_NAME "EVAL-AD7192-ASDZ"
108 #elif defined(DEV_AD7193)
109 #define ACTIVE_DEVICE_NAME "ad7193"
110 #define DEVICE_NAME "DEV_AD7193"
111 #define HW_MEZZANINE_NAME "EVAL-AD7193-ASDZ"
112 #elif defined(DEV_AD7194)
113 #define ACTIVE_DEVICE_NAME "ad7194"
114 #define DEVICE_NAME "DEV_AD7194"
115 #define HW_MEZZANINE_NAME "EVAL-AD7194ASDZ"
116 #elif defined(DEV_AD7195)
117 #define ACTIVE_DEVICE_NAME "ad7195"
118 #define DEVICE_NAME "DEV_AD7195"
119 #define HW_MEZZANINE_NAME "EVAL-AD7195-ASDZ"
121 #warning No/Unsupported ADxxxxy symbol defined. AD7193 defined
123 #define ACTIVE_DEVICE_NAME "ad7193"
124 #define DEVICE_NAME "DEV_AD7193"
125 #define HW_MEZZANINE_NAME "EVAL-AD7193-ASDZ"
128 #if defined(DEV_AD7190) || defined(DEV_AD7192) || defined(DEV_AD7195)
129 #define NO_OF_CHANNELS 4
130 #elif defined(DEV_AD7194)
131 #define NO_OF_CHANNELS 16
133 #define NO_OF_CHANNELS 8
135 #define ADC_RESOLUTION 24
138 #if !defined(ACTIVE_MODE)
139 #define ACTIVE_MODE NORMAL_MODE
156 #if (ACTIVE_MODE == NORMAL_MODE)
157 #define POLARITY_CONFIG UNIPOLAR_MODE
159 #define POLARITY_CONFIG BIPOLAR_MODE
180 #if (ACTIVE_MODE == NORMAL_MODE)
181 #define INPUT_CONFIG PSEUDO_DIFFERENTIAL_INPUT
183 #define INPUT_CONFIG DIFFERENTIAL_INPUT
187 #define ADC_MAX_COUNT_UNIPOLAR (uint32_t)((1 << ADC_RESOLUTION) - 1)
190 #define ADC_MAX_COUNT_BIPOLAR (uint32_t)(1 << (ADC_RESOLUTION-1))
193 #define IIO_UART_BAUD_RATE (230400)
196 #define FIRMWARE_NAME "ad719x_iio"
199 #if !defined(PLATFORM_NAME)
200 #define PLATFORM_NAME HW_CARRIER_NAME
206 #define VIRTUAL_COM_PORT_VID 0x0456
207 #define VIRTUAL_COM_PORT_PID 0xb66c
209 #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
221 extern struct no_os_uart_desc *
uart_desc;
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:194
void burst_capture_callback(void *context)
Interrupt Service Routine to monitor end of conversion event.
Definition: ad469x_iio.c:1033
Header file for Mbed platform configurations.