PN532 NFC library for Seeed Studio's NFC Shield

Fork of PN532 by Yihui Xiong

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PN532_debug.h Source File

PN532_debug.h

00001 #ifndef __DEBUG_H__
00002 #define __DEBUG_H__
00003 
00004 //#define DEBUG
00005 
00006 #ifdef DEBUG
00007 
00008 #include <stdio.h>
00009 
00010 #define DMSG(args...)   printf(args)
00011 #define DMSG_STR(str)   printf("%s\r\n", str)
00012 #define DMSG_INT(num)   printf("%d\r\n", num)
00013 #define DMSG_HEX(num)   printf("%2X ", num)
00014 
00015 #else
00016 
00017 #define DMSG(args...)
00018 #define DMSG_STR(str)
00019 #define DMSG_INT(num)
00020 #define DMSG_HEX(num)
00021 
00022 #endif  // DEBUG
00023 
00024 #endif  // __DEBUG_H__