Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API mbed nRF51822 BufferedSerial
Revision 1:e8d3536c7f99, committed 2014-09-26
- Comitter:
- ansond
- Date:
- Fri Sep 26 02:36:25 2014 +0000
- Parent:
- 0:45e5a1daf7c0
- Commit message:
- switched to buffered serial
Changed in this revision
BufferedSerial.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BufferedSerial.lib Fri Sep 26 02:36:25 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/sam_grove/code/BufferedSerial/#8287e83943f0
--- a/main.cpp Thu Sep 25 22:18:42 2014 +0000 +++ b/main.cpp Fri Sep 26 02:36:25 2014 +0000 @@ -47,7 +47,8 @@ // Console allocation #if ENABLE_CONSOLE - Serial pc(USBTX, USBRX); + #include "BufferedSerial.h" + BufferedSerial pc(USBTX, USBRX); #define LOG_CONSOLE(...) { pc.printf(__VA_ARGS__); } #else #define LOG_CONSOLE(...)