Moved STDIO_UART defines to targets.json for UBLOX_EVK_ODIN_W2 instead of hardcoded.

pull/5192/head
andreas.larsson 2017-09-25 16:47:38 +02:00 committed by Andreas Larsson
parent cc0b3d05aa
commit 120c9ad56c
3 changed files with 20 additions and 6 deletions

View File

@ -57,9 +57,8 @@ typedef enum {
UART_8 = (int)UART8_BASE
} UARTName;
#define STDIO_UART_TX PA_9
#define STDIO_UART_RX PA_10
#define STDIO_UART UART_1
#define STDIO_UART_TX USBTX
#define STDIO_UART_RX USBRX
typedef enum {
SPI_1 = (int)SPI1_BASE,

View File

@ -166,8 +166,8 @@ typedef enum {
BUTTON2 = SW1,
// ST-Link
USBRX = PA_10,
USBTX = PA_9,
USBRX = MBED_CONF_TARGET_USB_RX,
USBTX = MBED_CONF_TARGET_USB_TX,
SWDIO = PA_15,
SWCLK = PA_14,
NTRST = PB_4,

View File

@ -1701,7 +1701,22 @@
"features": ["LWIP"],
"release_versions": ["5"],
"device_name": "STM32F439ZI",
"bootloader_supported": true
"bootloader_supported": true,
"config": {
"usb_tx": {
"help": "Value: D8(default) or D1",
"value": "D8"
},
"usb_rx": {
"help": "Value: D2(default) or D0",
"value": "D2"
},
"stdio_uart": {
"help": "Value: UART_1(default) or UART_3",
"value": "UART_1",
"macro_name": "STDIO_UART"
}
}
},
"UBLOX_C030": {
"inherits": ["FAMILY_STM32"],