27#define MBED_PLATFORM 1
28#define STM32_PLATFORM 2
37#if !defined(ACTIVE_PLATFORM)
38#define ACTIVE_PLATFORM MBED_PLATFORM
44#if !defined(USE_PHY_COM_PORT)
45#define USE_VIRTUAL_COM_PORT
48#if (ACTIVE_PLATFORM == MBED_PLATFORM)
51#define HW_CARRIER_NAME TARGET_NAME
54#if defined(USE_VIRTUAL_COM_PORT)
55#define uart_extra_init_params mbed_vcom_extra_init_params
56#define uart_ops mbed_virtual_com_ops
58#define uart_extra_init_params mbed_uart_extra_init_params
59#define uart_ops mbed_uart_ops
61#define i2c_extra_init_params mbed_i2c_extra_init_params
62#define i2c_ops mbed_i2c_ops
63#elif (ACTIVE_PLATFORM == STM32_PLATFORM)
64#include "app_config_stm32.h"
66#define uart_extra_init_params stm32_uart_extra_init_params
67#define i2c_extra_init_params stm32_i2c_extra_init_params
68#define i2c_ops stm32_i2c_ops
69#define uart_ops stm32_uart_ops
71#error "No/Invalid active platform selected"
75#define FIRMWARE_NAME "evb_discovery_firmware"
77#if !defined(PLATFORM_NAME)
78#define PLATFORM_NAME HW_CARRIER_NAME
84#define VIRTUAL_COM_PORT_VID 0x0456
85#define VIRTUAL_COM_PORT_PID 0xb66c
87#define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" STR(PLATFORM_NAME))
90#define IIO_UART_BAUD_RATE (230400)
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:176
Header file for Mbed platform configurations.