Basic example showing the CMSIS-RTOS mail 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_mail

mail example

Revision:
2:e9f14106068c
Parent:
1:4a9c72442136
--- a/main.cpp	Fri Jul 13 15:03:37 2012 +0000
+++ b/main.cpp	Fri Nov 23 11:00:11 2012 +0000
@@ -10,7 +10,7 @@
 osMailQDef(mail_box, 16, mail_t);
 osMailQId  mail_box;
 
-void send_thread (void const *argument) {
+void send_thread (void const *args) {
     uint32_t i = 0;
     while (true) {
         i++; // fake data update