Alberto Piganti
/
blip_rtos_basic
miniBLIP RTOS
Fork of rtos_basic by
Diff: main.cpp
- Revision:
- 7:bfa1b2a0fa7a
- Parent:
- 3:c92e21f305d8
--- 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); } }