mbed_example
/
rtos_mail
mail example
Diff: main.cpp
- Revision:
- 4:d9d4837009f6
- Parent:
- 2:b84386915279
- Child:
- 5:6602f2907ac5
--- a/main.cpp Tue Jun 04 16:02:29 2013 +0100 +++ b/main.cpp Wed Jan 11 15:32:17 2017 +0000 @@ -10,7 +10,7 @@ Mail<mail_t, 16> mail_box; -void send_thread (void const *args) { +void send_thread (void) { uint32_t i = 0; while (true) { i++; // fake data update @@ -24,7 +24,8 @@ } int main (void) { - Thread thread(send_thread); + Thread thread; + thread.start(callback(send_thread)); while (true) { osEvent evt = mail_box.get();