Nico De Witte / PN532

Fork of PN532 by Seeed

PN532_debug.h

Committer:
dwini
Date:
2016-11-17
Revision:
11:e7bbcfa61859
Parent:
5:51f820fbd18a

File content as of revision 11:e7bbcfa61859:

#ifndef __DEBUG_H__
#define __DEBUG_H__

//#define DEBUG

#ifdef DEBUG

#include <stdio.h>

#define DMSG(args...)   printf(args)
#define DMSG_STR(str)   printf("%s\r\n", str)
#define DMSG_INT(num)   printf("%d\r\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__