mbed os 5?

Dependencies:   GYSFDMAXB_Mbed_OS Vector3

Files at this revision

API Documentation at this revision

Comitter:
cocorlow
Date:
Fri Apr 23 12:04:06 2021 +0000
Parent:
0:19a43a10f6c0
Commit message:
Mbed OS 5? no warranty

Changed in this revision

GYSFDMAXB.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
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 19a43a10f6c0 -r d299835a8259 GYSFDMAXB.lib
--- a/GYSFDMAXB.lib	Thu Apr 22 12:21:14 2021 +0000
+++ b/GYSFDMAXB.lib	Fri Apr 23 12:04:06 2021 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/cocorlow/code/GYSFDMAXB/#8d315f7977b3
+https://os.mbed.com/users/cocorlow/code/GYSFDMAXB_Mbed_OS/#0983cd1d7183
diff -r 19a43a10f6c0 -r d299835a8259 main.cpp
--- a/main.cpp	Thu Apr 22 12:21:14 2021 +0000
+++ b/main.cpp	Fri Apr 23 12:04:06 2021 +0000
@@ -1,9 +1,10 @@
 #include "mbed.h"
+#include "BufferedSerial.h"
 #include <string.h>
 #include "GYSFDMAXB.hpp"
 
 
-Serial pc(USBTX, USBRX);
+BufferedSerial pc(USBTX, USBRX, 115200);
 GYSFDMAXB gps(PC_12, PD_2);
 DigitalOut led(LED1);
 
@@ -36,7 +37,6 @@
 
 int main()
 {
-    pc.baud(115200);
     Ticker ticker;
     
     ticker.attach(&Display, 0.3);
@@ -47,6 +47,8 @@
     
     while (1)
     {
+        gps.Update();
+        pc.printf(" MbedOS v %d.%d.%d\r\n", MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION);
     }
 }
 
diff -r 19a43a10f6c0 -r d299835a8259 mbed-os.lib
--- a/mbed-os.lib	Thu Apr 22 12:21:14 2021 +0000
+++ b/mbed-os.lib	Fri Apr 23 12:04:06 2021 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#cf4f12a123c05fcae83fc56d76442015cb8a39e9
+https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81