Jim Cooper
/
simple_debug
Simple sample of using a debug class and macros.
Diff: debug.cpp
- Revision:
- 0:885c11431d59
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/debug.cpp Sun Aug 30 00:05:14 2015 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "debug.h" + + +Serial g_console(USBTX, USBRX); + + +#ifdef DEBUG + +debug g_debugger; + + + +void debug::error(const char* text) +{ + g_console.printf("!!!!!!!!!!!!!!!!! %s\n", text); +} + + +#endif