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: UniGraphic mbed vt100
af_utils/DebugIO.hpp@0:ce97f6d34336, 2018-02-23 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Feb 23 05:40:22 2018 +0000
- Revision:
- 0:ce97f6d34336
color sensor reset was added at the end of calibration
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Rhyme | 0:ce97f6d34336 | 1 | #ifndef _MARUSOL_DEBUG_IO_HPP_ |
| Rhyme | 0:ce97f6d34336 | 2 | #define _MARUSOL_DEBUG_IO_HPP_ |
| Rhyme | 0:ce97f6d34336 | 3 | |
| Rhyme | 0:ce97f6d34336 | 4 | #if defined (TARGET_TEENSY3_1) |
| Rhyme | 0:ce97f6d34336 | 5 | #include "USBSerial.h" |
| Rhyme | 0:ce97f6d34336 | 6 | #else |
| Rhyme | 0:ce97f6d34336 | 7 | #include "mbed.h" |
| Rhyme | 0:ce97f6d34336 | 8 | #endif |
| Rhyme | 0:ce97f6d34336 | 9 | |
| Rhyme | 0:ce97f6d34336 | 10 | // #define SERIAL_PRINT_DBG_ON |
| Rhyme | 0:ce97f6d34336 | 11 | #ifdef SERIAL_PRINT_DBG_ON |
| Rhyme | 0:ce97f6d34336 | 12 | #define SERIAL_PRINT_DBG(...) (printf(__VA_ARGS__)) |
| Rhyme | 0:ce97f6d34336 | 13 | #define SERIAL_PRINT_DBG_FUNCNAME() (printf("%s,%d,%s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__)) |
| Rhyme | 0:ce97f6d34336 | 14 | #else |
| Rhyme | 0:ce97f6d34336 | 15 | #define SERIAL_PRINT_DBG(...) |
| Rhyme | 0:ce97f6d34336 | 16 | #define SERIAL_PRINT_DBG_FUNCNAME() |
| Rhyme | 0:ce97f6d34336 | 17 | #endif //SERIAL_PRINT_DBG_ON |
| Rhyme | 0:ce97f6d34336 | 18 | |
| Rhyme | 0:ce97f6d34336 | 19 | // #define SERIAL_PRINT_DBG_ASR_ON |
| Rhyme | 0:ce97f6d34336 | 20 | #ifdef SERIAL_PRINT_DBG_ASR_ON |
| Rhyme | 0:ce97f6d34336 | 21 | #define SERIAL_PRINT_DBG_ASR(...) (printf(__VA_ARGS__)) |
| Rhyme | 0:ce97f6d34336 | 22 | #else |
| Rhyme | 0:ce97f6d34336 | 23 | #define SERIAL_PRINT_DBG_ASR(...) |
| Rhyme | 0:ce97f6d34336 | 24 | #endif //SERIAL_PRINT_DBG_ASR_ON |
| Rhyme | 0:ce97f6d34336 | 25 | |
| Rhyme | 0:ce97f6d34336 | 26 | #endif //_MARUSOL_DEBUG_IO_HPP_ |