miniBLIP RTOS

Dependencies:   mbed-rtos mbed

Fork of rtos_basic by mbed official

Files at this revision

API Documentation at this revision

Comitter:
pighixxx
Date:
Mon Nov 30 11:56:38 2015 +0000
Parent:
6:209f4db62daf
Commit message:
miniBLIP RTOS

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jun 04 16:01:32 2013 +0100
+++ b/main.cpp	Mon Nov 30 11:56:38 2015 +0000
@@ -1,21 +1,18 @@
 #include "mbed.h"
 #include "rtos.h"
  
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
- 
-void led2_thread(void const *args) {
+void thread01(void const *args) {
     while (true) {
-        led2 = !led2;
+        //Thread 1
         Thread::wait(1000);
     }
 }
  
 int main() {
-    Thread thread(led2_thread);
+    Thread thread(thread01);
     
     while (true) {
-        led1 = !led1;
+       //Main loop
         Thread::wait(500);
     }
 }
--- a/mbed-rtos.lib	Tue Jun 04 16:01:32 2013 +0100
+++ b/mbed-rtos.lib	Mon Nov 30 11:56:38 2015 +0000
@@ -1,1 +1,1 @@
-https://mbed.org/users/mbed_official/code/mbed-rtos/
\ No newline at end of file
+https://mbed.org/users/mbed_official/code/mbed-rtos/#6c35e082773a
--- a/mbed.bld	Tue Jun 04 16:01:32 2013 +0100
+++ b/mbed.bld	Mon Nov 30 11:56:38 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file