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.
Diff: Debug/debug.h
- Revision:
- 0:99928431bb44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Debug/debug.h Tue Jul 07 09:36:12 2015 +0000 @@ -0,0 +1,23 @@ + +#ifndef DEBUG_H +#define DEBUG_H + +#include "mbed.h" + +// The debug serial connection +extern Serial serialUSB ; + +// Serial debug level +#define DEBUG_LEVEL 0 // 0 - NO DEBUG + // 1 - DEBUG - SERIAL USB + +// Debug print defines +#if DEBUG_LEVEL == 0 + #define debugprintf(format, args...) +#elif DEBUG_LEVEL == 1 + #define debugprintf(format, args...) serialUSB.printf (format , ##args) +#endif + + + +#endif \ No newline at end of file