Techcon 2014 BLE sample Police HRM (button-based) for Nordic

Dependencies:   BLE_API mbed nRF51822 BufferedSerial

Files at this revision

API Documentation at this revision

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
diff -r 45e5a1daf7c0 -r e8d3536c7f99 BufferedSerial.lib
--- /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
diff -r 45e5a1daf7c0 -r e8d3536c7f99 main.cpp
--- 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(...)