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.
Debug/debug.h@0:99928431bb44, 2015-07-07 (annotated)
- Committer:
- millanea
- Date:
- Tue Jul 07 09:36:12 2015 +0000
- Revision:
- 0:99928431bb44
First commit. Committing the entire project such that it can be published.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
millanea | 0:99928431bb44 | 1 | |
millanea | 0:99928431bb44 | 2 | #ifndef DEBUG_H |
millanea | 0:99928431bb44 | 3 | #define DEBUG_H |
millanea | 0:99928431bb44 | 4 | |
millanea | 0:99928431bb44 | 5 | #include "mbed.h" |
millanea | 0:99928431bb44 | 6 | |
millanea | 0:99928431bb44 | 7 | // The debug serial connection |
millanea | 0:99928431bb44 | 8 | extern Serial serialUSB ; |
millanea | 0:99928431bb44 | 9 | |
millanea | 0:99928431bb44 | 10 | // Serial debug level |
millanea | 0:99928431bb44 | 11 | #define DEBUG_LEVEL 0 // 0 - NO DEBUG |
millanea | 0:99928431bb44 | 12 | // 1 - DEBUG - SERIAL USB |
millanea | 0:99928431bb44 | 13 | |
millanea | 0:99928431bb44 | 14 | // Debug print defines |
millanea | 0:99928431bb44 | 15 | #if DEBUG_LEVEL == 0 |
millanea | 0:99928431bb44 | 16 | #define debugprintf(format, args...) |
millanea | 0:99928431bb44 | 17 | #elif DEBUG_LEVEL == 1 |
millanea | 0:99928431bb44 | 18 | #define debugprintf(format, args...) serialUSB.printf (format , ##args) |
millanea | 0:99928431bb44 | 19 | #endif |
millanea | 0:99928431bb44 | 20 | |
millanea | 0:99928431bb44 | 21 | |
millanea | 0:99928431bb44 | 22 | |
millanea | 0:99928431bb44 | 23 | #endif |