Generic library for working with PN532-like chips

Fork of PN532 by Seeed

Committer:
r4z0r7o3
Date:
Wed Feb 04 19:04:54 2015 +0000
Revision:
10:f959b305a571
Parent:
5:51f820fbd18a
Try multiple known auth. keys on classic.  Also fixed all debugging messages so they all end with newlines.

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
r4z0r7o3 10:f959b305a571 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__