Example application: mbed-os-example-baremetal-blinky

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Oct 28 12:00:09 2019 +0000
Parent:
2:2877e096c363
Child:
4:52988b65027e
Commit message:
Removed deprecated wait_ms API (#19)

Sleep instead of wait.

.
Commit copied from https://github.com/ARMmbed/mbed-os-example-blinky-baremetal

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Sep 26 12:00:11 2019 +0100
+++ b/main.cpp	Mon Oct 28 12:00:09 2019 +0000
@@ -14,6 +14,6 @@
     while (true)
     {
         led1 = !led1;
-        wait_ms(WAIT_TIME);
+        thread_sleep_for(WAIT_TIME);
     }
 }