queue example

Revision:
5:2c73ccb2a032
Parent:
3:c490e2d69dd8
Child:
6:0cb43a362538
--- a/main.cpp	Tue Jun 04 16:03:43 2013 +0100
+++ b/main.cpp	Wed Jan 11 15:26:27 2017 +0000
@@ -11,7 +11,7 @@
 Queue<message_t, 16> queue;
 
 /* Send Thread */
-void send_thread (void const *args) {
+void send_thread (void) {
     uint32_t i = 0;
     while (true) {
         i++; // fake data update
@@ -25,7 +25,8 @@
 }
 
 int main (void) {
-    Thread thread(send_thread);
+    Thread thread;
+    thread.start(callback(send_thread));
     
     while (true) {
         osEvent evt = queue.get();