Basic example showing the CMSIS-RTOS queue API with a producer in an ISR and a consumer in a normal thread

Dependencies:   mbed mbed-rtos

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_isr

isr example

Revision:
2:39180377e223
Parent:
1:aa8ea13b6a07
--- a/main.cpp	Fri Jul 13 16:13:14 2012 +0000
+++ b/main.cpp	Fri Nov 23 11:03:57 2012 +0000
@@ -12,7 +12,7 @@
     myled = !myled;
 }
 
-void queue_thread(void const *argument) {
+void queue_thread(void const *args) {
     while (true) {
        osMessagePut(queue, 1, 0);
        osDelay(1000);