Leon Wehmeier / Mbed OS fiasco_max32630

Dependencies:   SoftSerial MAX14690 Buffer

Fork of rtos_threading_with_callback by mbed_example

Revision:
3:d7ec6dc025b0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/logger/logger.h	Fri Mar 30 10:32:10 2018 +0000
@@ -0,0 +1,16 @@
+#pragma once
+
+#include "rtos.h"
+class SDLogger;
+class Logger
+{
+    friend SDLogger;
+public:
+    static bool log(char* msg){
+        q.put(msg, osWaitForever);
+        return true;
+    }
+protected:
+    static rtos::Queue<char, 24> q; //max sz == 24
+    static const unsigned maxQueueSize = 24;
+};
\ No newline at end of file