We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b441c9 + 126de5b commit 089b67cCopy full SHA for 089b67c
hal/common/retarget.cpp
@@ -98,6 +98,9 @@ static void init_serial() {
98
#if DEVICE_SERIAL
99
if (stdio_uart_inited) return;
100
serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX);
101
+#if MBED_CONF_CORE_STDIO_BAUD_RATE
102
+ serial_baud(&stdio_uart, MBED_CONF_CORE_STDIO_BAUD_RATE);
103
+#endif
104
#endif
105
}
106
mbed_lib.json
@@ -4,6 +4,11 @@
4
"stdio-convert-newlines": {
5
"help": "Enable conversion to standard newlines on stdin/stdout",
6
"value": false
7
+ },
8
+
9
+ "stdio-baud-rate": {
10
+ "help": "Baud rate for stdio",
11
+ "value": 9600
12
13
14
0 commit comments