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 UART_8 = (int)UART8_BASE
} UARTName; } UARTName;
#define STDIO_UART_TX PA_9 #define STDIO_UART_TX USBTX
#define STDIO_UART_RX PA_10 #define STDIO_UART_RX USBRX
#define STDIO_UART UART_1
typedef enum { typedef enum {
SPI_1 = (int)SPI1_BASE, SPI_1 = (int)SPI1_BASE,

View File

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

View File

@ -1701,7 +1701,22 @@
"features": ["LWIP"], "features": ["LWIP"],
"release_versions": ["5"], "release_versions": ["5"],
"device_name": "STM32F439ZI", "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": { "UBLOX_C030": {
"inherits": ["FAMILY_STM32"], "inherits": ["FAMILY_STM32"],