first try on RTOS mbed OS, Blinking LED

Dependencies:   mbed-dev mbed-rtos

Fork of rtos_basic by mbed_example

Files at this revision

API Documentation at this revision

Comitter:
rtandil
Date:
Sun Mar 19 17:16:46 2017 +0000
Parent:
10:dc33cd3f4eb9
Commit message:
First Try

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-dev.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Jan 12 23:35:40 2017 +0000
+++ b/main.cpp	Sun Mar 19 17:16:46 2017 +0000
@@ -1,9 +1,11 @@
 #include "mbed.h"
+#include "Thread.h"
  
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
+using namespace rtos;
 Thread thread;
- 
+
 void led2_thread() {
     while (true) {
         led2 = !led2;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-dev.lib	Sun Mar 19 17:16:46 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed-dev/#d5399cc887bb
--- a/mbed-os.lib	Thu Jan 12 23:35:40 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/mbed-os/#2885c1b41e63158cb6faf5f107cd821ae06ef26c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-rtos.lib	Sun Mar 19 17:16:46 2017 +0000
@@ -0,0 +1,1 @@
+https://mbed.org/users/mbed_official/code/mbed-rtos/#58563e6cba1e