Skip to content

Commit be90983

Browse files
committed
STM32 STDIO pin redefinition
wiki page https://os.mbed.com/teams/ST/wiki/STDIO updated
1 parent 04f0f2b commit be90983

File tree

1 file changed

+26
-36
lines changed

1 file changed

+26
-36
lines changed

targets/targets.json

Lines changed: 26 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,12 @@
710710
"lse_available": {
711711
"help": "Define if a Low Speed External xtal (LSE) is available on the board (0 = No, 1 = Yes). If Yes, the LSE will be used to clock the RTC, LPUART, ... otherwise the Low Speed Internal clock (LSI) will be used",
712712
"value": "1"
713+
},
714+
"stdio_uart_tx": {
715+
"help": "default TX STDIO pins is defined in PinNames.h file, but it can be overridden"
716+
},
717+
"stdio_uart_rx": {
718+
"help": "default RX STDIO pins is defined in PinNames.h file, but it can be overridden"
713719
}
714720
},
715721
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"]
@@ -1103,14 +1109,6 @@
11031109
"device_name": "STM32F412ZG",
11041110
"bootloader_supported": true,
11051111
"config": {
1106-
"stdio_uart_tx": {
1107-
"help": "Value PB_6",
1108-
"value": "PB_6"
1109-
},
1110-
"stdio_uart_rx": {
1111-
"help": "Value PB_7",
1112-
"value": "PB_7"
1113-
},
11141112
"clock_source": {
11151113
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
11161114
"value": "USE_PLL_HSI",
@@ -1946,14 +1944,6 @@
19461944
"help": "Value: Defines how an on-board modem is wired up to the MCU, e.g., data connection can be a UART or USB and so forth.",
19471945
"value": 1,
19481946
"macro_name": "MODEM_ON_BOARD_UART"
1949-
},
1950-
"stdio_uart_tx": {
1951-
"help": "Value PB_6",
1952-
"value": "PB_6"
1953-
},
1954-
"stdio_uart_rx": {
1955-
"help": "Value PB_7",
1956-
"value": "PB_7"
19571947
}
19581948
},
19591949
"overrides": {
@@ -1999,16 +1989,12 @@
19991989
"hse_value": {
20001990
"value": "24000000",
20011991
"macro_name": "HSE_VALUE"
2002-
},
2003-
"stdio_uart_tx": {
2004-
"help": "Value PA_2",
2005-
"value": "PA_2"
2006-
},
2007-
"stdio_uart_rx": {
2008-
"help": "Value PA_3",
2009-
"value": "PA_3"
20101992
}
20111993
},
1994+
"overrides": {
1995+
"stdio_uart_tx": "PA_2",
1996+
"stdio_uart_rx": "PA_3"
1997+
},
20121998
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
20131999
"device_has_add": ["ANALOGOUT", "FLASH"],
20142000
"release_versions": ["5"],
@@ -2052,28 +2038,32 @@
20522038
"supported_form_factors": ["ARDUINO"],
20532039
"release_versions": ["5"],
20542040
"config": {
2055-
"stdio_uart_tx": {
2056-
"help": "Value: D8(default) or D1",
2057-
"value": "D8"
2041+
"stdio_uart_tx_help": {
2042+
"help": "Value: D8(default) or D1"
20582043
},
2059-
"stdio_uart_rx": {
2060-
"help": "Value: D2(default) or D0",
2061-
"value": "D2"
2044+
"stdio_uart_rx_help": {
2045+
"help": "Value: D2(default) or D0"
20622046
}
2047+
},
2048+
"overrides": {
2049+
"stdio_uart_tx": "D8",
2050+
"stdio_uart_rx": "D2"
20632051
}
20642052
},
20652053
"MBED_CONNECT_ODIN": {
20662054
"inherits": ["MODULE_UBLOX_ODIN_W2"],
20672055
"release_versions": ["5"],
20682056
"config": {
2069-
"stdio_uart_tx": {
2070-
"help": "Value: PA_9(default) or PD_8",
2071-
"value": "PA_9"
2057+
"stdio_uart_tx_help": {
2058+
"help": "Value: PA_9(default) or PD_8"
20722059
},
2073-
"stdio_uart_rx": {
2074-
"help": "Value: PA_10(default) or PD_9",
2075-
"value": "PA_10"
2060+
"stdio_uart_rx_help": {
2061+
"help": "Value: PA_10(default) or PD_9"
20762062
}
2063+
},
2064+
"overrides": {
2065+
"stdio_uart_tx": "PA_9",
2066+
"stdio_uart_rx": "PA_10"
20772067
}
20782068
},
20792069
"MTB_UBLOX_ODIN_W2": {

0 commit comments

Comments
 (0)