Leon Wehmeier / Mbed OS fiasco_max32630

Dependencies:   SoftSerial MAX14690 Buffer

Fork of rtos_threading_with_callback by mbed_example

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers logger.h Source File

logger.h

00001 #pragma once
00002 
00003 #include "rtos.h"
00004 class SDLogger;
00005 class Logger
00006 {
00007     friend SDLogger;
00008 public:
00009     static bool log(char* msg){
00010         q.put(msg, osWaitForever);
00011         return true;
00012     }
00013 protected:
00014     static rtos::Queue<char, 24> q; //max sz == 24
00015     static const unsigned maxQueueSize = 24;
00016 };