updated for mbed os 5.4
Revision 1:cbcb7c2d43cd, committed 2019-09-20
- Comitter:
- noutram
- Date:
- Fri Sep 20 15:10:15 2019 +0000
- Parent:
- 0:e48f4ddb9393
- Child:
- 2:22ab4fcc5293
- Commit message:
- 2019
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 Thu Mar 30 12:39:47 2017 +0000
+++ b/main.cpp Fri Sep 20 15:10:15 2019 +0000
@@ -21,7 +21,8 @@
{
while (true) {
redLED = !redLED;
- Thread::wait(2000);
+ ThisThread::sleep_for(2000);
+ //Thread::wait(2000); //Deprecated
}
}
@@ -29,7 +30,8 @@
{
while (true) {
yellowLED = !yellowLED;
- Thread::wait(1000);
+ ThisThread::sleep_for(1000);
+ //Thread::wait(1000); //Deprecated
}
}
@@ -44,7 +46,8 @@
while(1) {
//Thread::wait(osWaitForever);
- Thread::wait(5000);
+ //Thread::wait(5000); //Deprecated
+ ThisThread::sleep_for(5000);
printf("Awake\n"); //Should not happen
}
}
--- a/mbed-os.lib Thu Mar 30 12:39:47 2017 +0000 +++ b/mbed-os.lib Fri Sep 20 15:10:15 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d +https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118