make uart console port configurable via mbed_app.json

pull/6803/head
Alan Chuang 2018-05-25 16:30:57 +08:00
parent 2eac96eb04
commit 7f4272d9a7
1 changed files with 8 additions and 0 deletions

View File

@ -186,8 +186,16 @@ typedef enum {
LED2 = GPIO2,
LED3 = GPIO4,
#ifdef MBED_CONF_TARGET_STDIO_UART_TX
STDIO_UART_TX = MBED_CONF_TARGET_STDIO_UART_TX,
#else
STDIO_UART_TX = UART3_TX,
#endif
#ifdef MBED_CONF_TARGET_STDIO_UART_RX
STDIO_UART_RX = MBED_CONF_TARGET_STDIO_UART_RX,
#else
STDIO_UART_RX = UART3_RX,
#endif
SERIAL_TX = STDIO_UART_TX,
SERIAL_RX = STDIO_UART_RX,