Updated for mbed OS 5.4
Revision 1:d60ed022d866, committed 2019-09-20
- Comitter:
- noutram
- Date:
- Fri Sep 20 15:10:37 2019 +0000
- Parent:
- 0:9ff439f5bf2e
- Child:
- 2:06e6936799eb
- 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 13:35:55 2017 +0000
+++ b/main.cpp Fri Sep 20 15:10:37 2019 +0000
@@ -23,7 +23,8 @@
{
while (true) {
redLED = !redLED;
- Thread::wait(2000);
+ //Thread::wait(2000);
+ ThisThread::sleep_for(2000);
}
}
@@ -31,7 +32,8 @@
{
while (true) {
yellowLED = !yellowLED;
- Thread::wait(1000);
+ //Thread::wait(1000);
+ ThisThread::sleep_for(1000);
}
}
@@ -40,7 +42,8 @@
{
while (true) {
greenLED = !greenLED;
- Thread::wait(500);
+ //Thread::wait(500);
+ ThisThread::sleep_for(500);
}
}
@@ -58,7 +61,8 @@
while(1) {
//Thread::wait(osWaitForever);
- Thread::wait(5000);
+ //Thread::wait(5000);
+ ThisThread::sleep_for(5000);
printf("Awake\n"); //Should not happen
}
}
--- a/mbed-os.lib Thu Mar 30 13:35:55 2017 +0000 +++ b/mbed-os.lib Fri Sep 20 15:10:37 2019 +0000 @@ -1,1 +1,1 @@ -https://github.com/ARMmbed/mbed-os/#50b3418e45484ebf442b88cd935a2d5355402d7d +https://github.com/ARMmbed/mbed-os/#1bf6b20df9d3cd5f29f001ffc6f0d0fcbbb96118