Added config option for stdio baud rate

pull/2144/head
Christopher Haster 2016-06-22 00:38:41 -05:00
parent 967b45a3ec
commit 126de5b07a
2 changed files with 8 additions and 0 deletions

View File

@ -98,6 +98,9 @@ static void init_serial() {
#if DEVICE_SERIAL
if (stdio_uart_inited) return;
serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX);
#if MBED_CONF_CORE_STDIO_BAUD_RATE
serial_baud(&stdio_uart, MBED_CONF_CORE_STDIO_BAUD_RATE);
#endif
#endif
}

View File

@ -4,6 +4,11 @@
"stdio-convert-newlines": {
"help": "Enable conversion to standard newlines on stdin/stdout",
"value": false
},
"stdio-baud-rate": {
"help": "Baud rate for stdio",
"value": 9600
}
}
}