PN532 NFC library for Seeed Studio's NFC Shield
Fork of PN532 by
PN532_debug.h@5:51f820fbd18a, 2014-10-07 (annotated)
- Committer:
- icefeet
- Date:
- Tue Oct 07 15:09:46 2014 +0000
- Revision:
- 5:51f820fbd18a
- Parent:
- 3:4189a10038e6
Added support for Ultralight Write
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yihui | 0:9c6b9280c0e1 | 1 | #ifndef __DEBUG_H__ |
yihui | 0:9c6b9280c0e1 | 2 | #define __DEBUG_H__ |
yihui | 0:9c6b9280c0e1 | 3 | |
yihui | 0:9c6b9280c0e1 | 4 | //#define DEBUG |
yihui | 0:9c6b9280c0e1 | 5 | |
yihui | 0:9c6b9280c0e1 | 6 | #ifdef DEBUG |
yihui | 0:9c6b9280c0e1 | 7 | |
yihui | 0:9c6b9280c0e1 | 8 | #include <stdio.h> |
yihui | 0:9c6b9280c0e1 | 9 | |
yihui | 1:b8cab5222fd0 | 10 | #define DMSG(args...) printf(args) |
icefeet | 5:51f820fbd18a | 11 | #define DMSG_STR(str) printf("%s\r\n", str) |
icefeet | 5:51f820fbd18a | 12 | #define DMSG_INT(num) printf("%d\r\n", num) |
yihui | 1:b8cab5222fd0 | 13 | #define DMSG_HEX(num) printf("%2X ", num) |
yihui | 1:b8cab5222fd0 | 14 | |
yihui | 0:9c6b9280c0e1 | 15 | #else |
yihui | 0:9c6b9280c0e1 | 16 | |
yihui | 1:b8cab5222fd0 | 17 | #define DMSG(args...) |
yihui | 1:b8cab5222fd0 | 18 | #define DMSG_STR(str) |
yihui | 1:b8cab5222fd0 | 19 | #define DMSG_INT(num) |
yihui | 1:b8cab5222fd0 | 20 | #define DMSG_HEX(num) |
yihui | 1:b8cab5222fd0 | 21 | |
yihui | 1:b8cab5222fd0 | 22 | #endif // DEBUG |
yihui | 1:b8cab5222fd0 | 23 | |
yihui | 1:b8cab5222fd0 | 24 | #endif // __DEBUG_H__ |