Jim Cooper
/
simple_debug
Simple sample of using a debug class and macros.
debug.cpp
- Committer:
- jimcooper
- Date:
- 2015-08-30
- Revision:
- 0:885c11431d59
File content as of revision 0:885c11431d59:
#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