NFC library using PN532 to read/write NDEF Messages to NFC tags
Dependents: Seeed_NFC_Shield_write Nucleo_test_nfc
Fork of PN532 by
debug.h@0:9c6b9280c0e1, 2013-10-08 (annotated)
- Committer:
- yihui
- Date:
- Tue Oct 08 08:33:22 2013 +0000
- Revision:
- 0:9c6b9280c0e1
- Child:
- 1:b8cab5222fd0
initial, ported from https://github.com/Seeed-Studio/PN532
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 | 0:9c6b9280c0e1 | 10 | #define DMSG(str) printf("%s\r\n", str) |
yihui | 0:9c6b9280c0e1 | 11 | #define DMSG_HEX(n) printf("%2X ", n) |
yihui | 0:9c6b9280c0e1 | 12 | #else |
yihui | 0:9c6b9280c0e1 | 13 | #define DMSG(str) |
yihui | 0:9c6b9280c0e1 | 14 | #define DMSG_HEX(n) |
yihui | 0:9c6b9280c0e1 | 15 | #endif |
yihui | 0:9c6b9280c0e1 | 16 | |
yihui | 0:9c6b9280c0e1 | 17 | #endif |