z ysaito
/
APro_B2DTst_0_Can_Class
2018.07.26
debugprint.h@0:b3376afd10d8, 2018-07-26 (annotated)
- Committer:
- sayzyas
- Date:
- Thu Jul 26 00:20:04 2018 +0000
- Revision:
- 0:b3376afd10d8
2018.07.26
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sayzyas | 0:b3376afd10d8 | 1 | // ====================================================================== |
sayzyas | 0:b3376afd10d8 | 2 | // For Debugging |
sayzyas | 0:b3376afd10d8 | 3 | // ====================================================================== |
sayzyas | 0:b3376afd10d8 | 4 | #define __DEBUG_PRINT_SW__ // Display SW Status to console |
sayzyas | 0:b3376afd10d8 | 5 | #define __DEBUG_L0__ |
sayzyas | 0:b3376afd10d8 | 6 | #define __DEBUG_L1__ |
sayzyas | 0:b3376afd10d8 | 7 | //#define __DEBUG_L2__ |
sayzyas | 0:b3376afd10d8 | 8 | #define __DEBUG_L3__ |
sayzyas | 0:b3376afd10d8 | 9 | //#define __DEBUG_L4__ |
sayzyas | 0:b3376afd10d8 | 10 | //#define __DEBUG_L5__ |
sayzyas | 0:b3376afd10d8 | 11 | |
sayzyas | 0:b3376afd10d8 | 12 | #define __DEBUG_WINCH_DATA__ |
sayzyas | 0:b3376afd10d8 | 13 | |
sayzyas | 0:b3376afd10d8 | 14 | #ifdef __DEBUG_WINCH_DATA__ |
sayzyas | 0:b3376afd10d8 | 15 | #define DEBUG_PRINT_WINCH_DATA(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 16 | #else |
sayzyas | 0:b3376afd10d8 | 17 | #define DEBUG_PRINT_WINCH_DATA(...) |
sayzyas | 0:b3376afd10d8 | 18 | #endif |
sayzyas | 0:b3376afd10d8 | 19 | |
sayzyas | 0:b3376afd10d8 | 20 | #ifdef __DEBUG_PRINT_SW__ |
sayzyas | 0:b3376afd10d8 | 21 | #define DEBUG_PRINT_SW(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 22 | #else |
sayzyas | 0:b3376afd10d8 | 23 | #define DEBUG_PRINT_SW(...) |
sayzyas | 0:b3376afd10d8 | 24 | #endif |
sayzyas | 0:b3376afd10d8 | 25 | |
sayzyas | 0:b3376afd10d8 | 26 | #ifdef __DEBUG_L0__ |
sayzyas | 0:b3376afd10d8 | 27 | #define DEBUG_PRINT_L0(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 28 | #else |
sayzyas | 0:b3376afd10d8 | 29 | #define DEBUG_PRINT_L0(...) |
sayzyas | 0:b3376afd10d8 | 30 | #endif |
sayzyas | 0:b3376afd10d8 | 31 | #ifdef __DEBUG_L1__ |
sayzyas | 0:b3376afd10d8 | 32 | #define DEBUG_PRINT_L1(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 33 | #else |
sayzyas | 0:b3376afd10d8 | 34 | #define DEBUG_PRINT_L1(...) |
sayzyas | 0:b3376afd10d8 | 35 | #endif |
sayzyas | 0:b3376afd10d8 | 36 | #ifdef __DEBUG_L2__ |
sayzyas | 0:b3376afd10d8 | 37 | #define DEBUG_PRINT_L2(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 38 | #else |
sayzyas | 0:b3376afd10d8 | 39 | #define DEBUG_PRINT_L2(...) |
sayzyas | 0:b3376afd10d8 | 40 | #endif |
sayzyas | 0:b3376afd10d8 | 41 | #ifdef __DEBUG_L3__ |
sayzyas | 0:b3376afd10d8 | 42 | #define DEBUG_PRINT_L3(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 43 | #else |
sayzyas | 0:b3376afd10d8 | 44 | #define DEBUG_PRINT_L3(...) |
sayzyas | 0:b3376afd10d8 | 45 | #endif |
sayzyas | 0:b3376afd10d8 | 46 | #ifdef __DEBUG_L4__ |
sayzyas | 0:b3376afd10d8 | 47 | #define DEBUG_PRINT_L4(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 48 | #else |
sayzyas | 0:b3376afd10d8 | 49 | #define DEBUG_PRINT_L4(...) |
sayzyas | 0:b3376afd10d8 | 50 | #endif |
sayzyas | 0:b3376afd10d8 | 51 | #ifdef __DEBUG_L5__ |
sayzyas | 0:b3376afd10d8 | 52 | #define DEBUG_PRINT_L5(...) pc.printf(__VA_ARGS__) |
sayzyas | 0:b3376afd10d8 | 53 | #else |
sayzyas | 0:b3376afd10d8 | 54 | #define DEBUG_PRINT_L5(...) |
sayzyas | 0:b3376afd10d8 | 55 | #endif |