AB&T / Mbed OS EasyCAT_LAB_very_simple

Dependencies:   SOEM

Files at this revision

API Documentation at this revision

Comitter:
EasyCAT
Date:
Fri May 07 10:19:40 2021 +0000
Parent:
0:bc829777f1ea
Child:
2:368e7d4d8171
Commit message:
Updated for OS6 compatibility:; 1) Changed "Serial" with "UnbufferedSerial"; 2) Changed "wait_ms" with "ThisThread::sleep_for"

Changed in this revision

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
--- a/main.cpp	Tue Jul 09 16:25:27 2019 +0000
+++ b/main.cpp	Fri May 07 10:19:40 2021 +0000
@@ -44,7 +44,7 @@
                                   
 #define SysMilliS() (uint32_t)Kernel::get_ms_count()                                      
 
-Serial pc(USBTX,USBRX,115200);          // set the debug serial line speed to 115200
+UnbufferedSerial pc(USBTX,USBRX,115200);          // set the debug serial line speed to 115200
 
 
 
@@ -285,7 +285,7 @@
     while(1)
     {           
         LED_RED = !LED_RED;
-        wait_ms(100);    
+        ThisThread::sleep_for(100ms);   
     }
 }    
 
--- a/mbed-os.lib	Tue Jul 09 16:25:27 2019 +0000
+++ b/mbed-os.lib	Fri May 07 10:19:40 2021 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#9cab58358b338a3a7d7de258090bf0b500b2be97
+https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81