PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Revision:
3:4189a10038e6
Parent:
1:b8cab5222fd0
Child:
5:51f820fbd18a
diff -r f618fb2169c4 -r 4189a10038e6 PN532_debug.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PN532_debug.h	Thu Nov 21 04:30:49 2013 +0000
@@ -0,0 +1,24 @@
+#ifndef __DEBUG_H__
+#define __DEBUG_H__
+
+//#define DEBUG
+
+#ifdef DEBUG
+
+#include <stdio.h>
+
+#define DMSG(args...)   printf(args)
+#define DMSG_STR(str)   printf("%s\n", str)
+#define DMSG_INT(num)   printf("%d\n", num)
+#define DMSG_HEX(num)   printf("%2X ", num)
+
+#else
+
+#define DMSG(args...)
+#define DMSG_STR(str)
+#define DMSG_INT(num)
+#define DMSG_HEX(num)
+
+#endif  // DEBUG
+
+#endif  // __DEBUG_H__