Skip to content

STM32 STDIO pin redefinition #6041

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 26 additions & 36 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,12 @@
"lse_available": {
"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",
"value": "1"
},
"stdio_uart_tx": {
"help": "default TX STDIO pins is defined in PinNames.h file, but it can be overridden"
},
"stdio_uart_rx": {
"help": "default RX STDIO pins is defined in PinNames.h file, but it can be overridden"
}
},
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"]
Expand Down Expand Up @@ -1103,14 +1109,6 @@
"device_name": "STM32F412ZG",
"bootloader_supported": true,
"config": {
"stdio_uart_tx": {
"help": "Value PB_6",
"value": "PB_6"
},
"stdio_uart_rx": {
"help": "Value PB_7",
"value": "PB_7"
},
"clock_source": {
"help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
"value": "USE_PLL_HSI",
Expand Down Expand Up @@ -1946,14 +1944,6 @@
"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.",
"value": 1,
"macro_name": "MODEM_ON_BOARD_UART"
},
"stdio_uart_tx": {
"help": "Value PB_6",
"value": "PB_6"
},
"stdio_uart_rx": {
"help": "Value PB_7",
"value": "PB_7"
}
},
"overrides": {
Expand Down Expand Up @@ -1999,16 +1989,12 @@
"hse_value": {
"value": "24000000",
"macro_name": "HSE_VALUE"
},
"stdio_uart_tx": {
"help": "Value PA_2",
"value": "PA_2"
},
"stdio_uart_rx": {
"help": "Value PA_3",
"value": "PA_3"
}
},
"overrides": {
"stdio_uart_tx": "PA_2",
"stdio_uart_rx": "PA_3"
},
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
"device_has_add": ["ANALOGOUT", "FLASH"],
"release_versions": ["5"],
Expand Down Expand Up @@ -2052,28 +2038,32 @@
"supported_form_factors": ["ARDUINO"],
"release_versions": ["5"],
"config": {
"stdio_uart_tx": {
"help": "Value: D8(default) or D1",
"value": "D8"
"stdio_uart_tx_help": {
"help": "Value: D8(default) or D1"
},
"stdio_uart_rx": {
"help": "Value: D2(default) or D0",
"value": "D2"
"stdio_uart_rx_help": {
"help": "Value: D2(default) or D0"
}
},
"overrides": {
"stdio_uart_tx": "D8",
"stdio_uart_rx": "D2"
}
},
"MBED_CONNECT_ODIN": {
"inherits": ["MODULE_UBLOX_ODIN_W2"],
"release_versions": ["5"],
"config": {
"stdio_uart_tx": {
"help": "Value: PA_9(default) or PD_8",
"value": "PA_9"
"stdio_uart_tx_help": {
"help": "Value: PA_9(default) or PD_8"
},
"stdio_uart_rx": {
"help": "Value: PA_10(default) or PD_9",
"value": "PA_10"
"stdio_uart_rx_help": {
"help": "Value: PA_10(default) or PD_9"
}
},
"overrides": {
"stdio_uart_tx": "PA_9",
"stdio_uart_rx": "PA_10"
}
},
"MTB_UBLOX_ODIN_W2": {
Expand Down