Basic example showing the Thread API
mbed 2 and mbed OS 5
This is an mbed 2 example. mbed OS 5 has integrated the mbed library with mbed-rtos. For an mbed-os example, please see:
Import programrtos_basic
basic rtos example
Diff: main.cpp
- Revision:
- 3:c92e21f305d8
- Parent:
- 1:491820ee784d
- Child:
- 7:8d9919175929
--- a/main.cpp Fri Aug 03 09:50:48 2012 +0000 +++ b/main.cpp Fri Nov 23 09:58:48 2012 +0000 @@ -4,7 +4,7 @@ DigitalOut led1(LED1); DigitalOut led2(LED2); -void led2_thread(void const *argument) { +void led2_thread(void const *args) { while (true) { led2 = !led2; Thread::wait(1000);