28 #define MBED_PLATFORM 1
29 #define STM32_PLATFORM 2
33 #define STR(s) XSTR(s)
38 #if !defined(ACTIVE_PLATFORM)
39 #define ACTIVE_PLATFORM MBED_PLATFORM
45 #if !defined(USE_PHY_COM_PORT)
46 #define USE_VIRTUAL_COM_PORT
56 #if defined(DEV_LTC2672_12)
57 #define ACTIVE_DEVICE_NAME "ltc2672-12"
58 #define DEVICE_NAME "DEV_LTC2672_12"
59 #define ACTIVE_DEVICE_ID LTC2672_12
60 #define DAC_RESOLUTION 12
61 #define DAC_MAX_COUNT LTC2672_12BIT_RESO
62 #elif defined(DEV_LTC2672_16)
63 #define ACTIVE_DEVICE_NAME "ltc2672-16"
64 #define DEVICE_NAME "DEV_LTC2672_16"
65 #define ACTIVE_DEVICE_ID LTC2672_16
66 #define DAC_RESOLUTION 16
67 #define DAC_MAX_COUNT LTC2672_16BIT_RESO
69 #warning No/Unsupported ADxxxxy symbol defined. LTC2672_16 defined
70 #define DEV_LTC2672_16
71 #define ACTIVE_DEVICE_NAME "ltc2672-16"
72 #define DEVICE_NAME "DEV_LTC2672_16"
73 #define ACTIVE_DEVICE_ID LTC2672_16
74 #define DAC_RESOLUTION 16
75 #define DAC_MAX_COUNT LTC2672_16BIT_RESO
81 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
83 #elif (ACTIVE_PLATFORM == STM32_PLATFORM)
84 #include "app_config_stm32.h"
86 #error "No/Invalid active platform selected"
89 #define HW_CARRIER_NAME TARGET_NAME
91 #define HW_MEZZANINE_NAME "DC2903A-A"
96 #define IIO_UART_BAUD_RATE (230400)
99 #define FIRMWARE_NAME "ltc2672_iio"
101 #if !defined(PLATFORM_NAME)
102 #define PLATFORM_NAME HW_CARRIER_NAME
108 #define VIRTUAL_COM_PORT_VID 0x0456
109 #define VIRTUAL_COM_PORT_PID 0xb66c
111 #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
114 #if defined(USE_PHY_COM_PORT)
116 #if (ACTIVE_PLATFORM == MBED_PLATFORM)
117 #define CONSOLE_STDIO_PORT_AVAILABLE
121 #define CONSOLE_STDIO_PORT_AVAILABLE
128 #define CONV_TRIGGER_PERIOD_NSEC (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
129 #define CONV_TRIGGER_DUTY_CYCLE_NSEC (CONV_TRIGGER_PERIOD_NSEC / 2)
int32_t init_system(void)
Initialize the system peripherals.
Definition: app_config.c:185
struct no_os_uart_desc * uart_iio_com_desc
Definition: app_config.c:127
struct no_os_uart_desc * uart_console_stdio_desc
Definition: app_config.c:100
Header file for Mbed platform configurations.