Basic example showing the CMSIS-RTOS queue and memory pool 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_queue
queue example
Diff: main.cpp
- Revision:
- 2:54e171ca91a6
- Parent:
- 1:85e3058aad0f
diff -r 85e3058aad0f -r 54e171ca91a6 main.cpp --- a/main.cpp Fri Jul 13 14:57:51 2012 +0000 +++ b/main.cpp Fri Nov 23 10:58:19 2012 +0000 @@ -13,7 +13,7 @@ osMessageQDef(queue, 16, message_t); osMessageQId queue; -void send_thread (void const *argument) { +void send_thread (void const *args) { uint32_t i = 0; while (true) { i++; // fake data update