Forked from LibPN532
Dependents: NFC_Secure_Access NFC_Secure_Access
Fork of LibPN532 by
PN532/PN532_debug.h@2:9a2ab3fa7862, 2018-04-22 (annotated)
- Committer:
- udareaniket
- Date:
- Sun Apr 22 23:29:20 2018 +0000
- Revision:
- 2:9a2ab3fa7862
- Parent:
- 0:db8030e71f55
Initial commit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dotnfc | 0:db8030e71f55 | 1 | #ifndef __DEBUG_H__ |
dotnfc | 0:db8030e71f55 | 2 | #define __DEBUG_H__ |
dotnfc | 0:db8030e71f55 | 3 | |
dotnfc | 0:db8030e71f55 | 4 | #define DEBUG |
dotnfc | 0:db8030e71f55 | 5 | |
dotnfc | 0:db8030e71f55 | 6 | #include <stdlib.h> |
dotnfc | 0:db8030e71f55 | 7 | #include "Arduino.h" |
dotnfc | 0:db8030e71f55 | 8 | |
dotnfc | 0:db8030e71f55 | 9 | #ifdef DEBUG |
dotnfc | 0:db8030e71f55 | 10 | #define DMSG(args...) printf (args) |
dotnfc | 0:db8030e71f55 | 11 | #define DMSG_STR(str) printf (str) |
dotnfc | 0:db8030e71f55 | 12 | #define DMSG_HEX(num) printf (" %02X", num) |
dotnfc | 0:db8030e71f55 | 13 | #define DMSG_INT(num) printf (" %d ", num) |
dotnfc | 0:db8030e71f55 | 14 | #else |
dotnfc | 0:db8030e71f55 | 15 | #define DMSG(args...) |
dotnfc | 0:db8030e71f55 | 16 | #define DMSG_STR(str) |
dotnfc | 0:db8030e71f55 | 17 | #define DMSG_HEX(num) |
dotnfc | 0:db8030e71f55 | 18 | #define DMSG_INT(num) |
dotnfc | 0:db8030e71f55 | 19 | #endif |
dotnfc | 0:db8030e71f55 | 20 | |
dotnfc | 0:db8030e71f55 | 21 | #endif |