Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SoftSerial MAX14690 Buffer
Fork of rtos_threading_with_callback by
Diff: logger/logger.h
- 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