13 #ifndef _APP_CONFIG_H_
14 #define _APP_CONFIG_H_
27 #define MBED_PLATFORM 1
28 #define STM32_PLATFORM 2
32 #define STR(s) XSTR(s)
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 HW_CARRIER_NAME NUCLEO-H563ZI
68 #define uart_extra_init_params stm32_uart_extra_init_params
69 #define i2c_extra_init_params stm32_i2c_extra_init_params
70 #define i2c_ops stm32_i2c_ops
71 #define uart_ops stm32_uart_ops
73 #error "No/Invalid active platform selected"
77 #define FIRMWARE_NAME "evb_discovery_firmware"
79 #if !defined(PLATFORM_NAME)
80 #define PLATFORM_NAME HW_CARRIER_NAME
86 #define VIRTUAL_COM_PORT_VID 0x0456
87 #define VIRTUAL_COM_PORT_PID 0xb66c
89 #define VIRTUAL_COM_SERIAL_NUM (FIRMWARE_NAME "_" STR(PLATFORM_NAME))
92 #define IIO_UART_BAUD_RATE (230400)
101 extern struct no_os_uart_desc *
uart_desc;
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
Header file for Mbed platform configurations.