NFC library using PN532 to read/write NDEF Messages to NFC tags
Dependents: Seeed_NFC_Shield_write Nucleo_test_nfc
Fork of PN532 by
PN532_debug.h@6:26c1b3b6c192, 2014-03-25 (annotated)
- Committer:
- screamer
- Date:
- Tue Mar 25 16:48:10 2014 +0000
- Revision:
- 6:26c1b3b6c192
- Parent:
- 3:4189a10038e6
Fixed compile warnings
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) |
yihui | 1:b8cab5222fd0 | 11 | #define DMSG_STR(str) printf("%s\n", str) |
yihui | 1:b8cab5222fd0 | 12 | #define DMSG_INT(num) printf("%d\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__ |