This is a fork of the `events` subdirectory of https://github.com/ARMmbed/mbed-os

Dependents:   HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more

This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.

Note, you must import this library with import name: events!!!

Files at this revision

API Documentation at this revision

Comitter:
Christopher Haster
Date:
Wed Jun 22 00:38:41 2016 -0500
Parent:
6883:509d8fdc4e0f
Child:
6893:75ec4725cc52
Commit message:
Added config option for stdio baud rate

Changed in this revision

hal/common/retarget.cpp Show annotated file Show diff for this revision Revisions of this file
mbed_lib.json Show annotated file Show diff for this revision Revisions of this file
--- a/hal/common/retarget.cpp	Mon Jul 11 11:07:40 2016 +0100
+++ b/hal/common/retarget.cpp	Wed Jun 22 00:38:41 2016 -0500
@@ -98,6 +98,9 @@
 #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
 }
 
--- a/mbed_lib.json	Mon Jul 11 11:07:40 2016 +0100
+++ b/mbed_lib.json	Wed Jun 22 00:38:41 2016 -0500
@@ -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
         }
     }
 }