PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Committer:
yihui
Date:
Thu Oct 17 06:37:26 2013 +0000
Revision:
1:b8cab5222fd0
Parent:
0:9c6b9280c0e1
format code

Who changed what in which revision?

UserRevisionLine numberNew 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__