https://os.mbed.com/users/sayzyas
Dependencies: QEI TextLCD mbed
debugprint.h
- Committer:
- sayzyas
- Date:
- 2018-07-26
- Revision:
- 0:73dd48be5ca6
File content as of revision 0:73dd48be5ca6:
// ======================================================================
// For Debugging
// ======================================================================
#define __DEBUG_PRINT_SW__ // Display SW Status to console
#define __DEBUG_L0__
#define __DEBUG_L1__
#define __DEBUG_L2__
#define __DEBUG_L3__
//#define __DEBUG_L4__
//#define __DEBUG_L5__
#define __DEBUG_WINCH_DATA__
#ifdef __DEBUG_WINCH_DATA__
#define DEBUG_PRINT_WINCH_DATA(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_WINCH_DATA(...)
#endif
#ifdef __DEBUG_PRINT_SW__
#define DEBUG_PRINT_SW(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_SW(...)
#endif
#ifdef __DEBUG_L0__
#define DEBUG_PRINT_L0(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L0(...)
#endif
#ifdef __DEBUG_L1__
#define DEBUG_PRINT_L1(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L1(...)
#endif
#ifdef __DEBUG_L2__
#define DEBUG_PRINT_L2(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L2(...)
#endif
#ifdef __DEBUG_L3__
#define DEBUG_PRINT_L3(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L3(...)
#endif
#ifdef __DEBUG_L4__
#define DEBUG_PRINT_L4(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L4(...)
#endif
#ifdef __DEBUG_L5__
#define DEBUG_PRINT_L5(...) pc.printf(__VA_ARGS__)
#else
#define DEBUG_PRINT_L5(...)
#endif