Basic example showing the CMSIS-RTOS queue and memory pool API

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_queue

queue example

Files at this revision

API Documentation at this revision

Comitter:
emilmont
Date:
Fri Nov 23 10:58:19 2012 +0000
Parent:
1:85e3058aad0f
Commit message:
update libraries

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
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
diff -r 85e3058aad0f -r 54e171ca91a6 mbed-rtos.lib
--- a/mbed-rtos.lib	Fri Jul 13 14:57:51 2012 +0000
+++ b/mbed-rtos.lib	Fri Nov 23 10:58:19 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#01158bb7600c
+http://mbed.org/users/mbed_official/code/mbed-rtos/#80173c64d05d
diff -r 85e3058aad0f -r 54e171ca91a6 mbed.bld
--- a/mbed.bld	Fri Jul 13 14:57:51 2012 +0000
+++ b/mbed.bld	Fri Nov 23 10:58:19 2012 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/10b9abbe79a6
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/3d775a932e1d
\ No newline at end of file