Forked from LibPN532

Dependents:   NFC_Secure_Access NFC_Secure_Access

Fork of LibPN532 by dotnfc Tang

PN532/PN532_debug.h

Committer:
udareaniket
Date:
2018-04-22
Revision:
2:9a2ab3fa7862
Parent:
0:db8030e71f55

File content as of revision 2:9a2ab3fa7862:

#ifndef __DEBUG_H__
#define __DEBUG_H__

#define DEBUG

#include <stdlib.h>
#include "Arduino.h"

#ifdef DEBUG
#define DMSG(args...)       printf (args)
#define DMSG_STR(str)       printf (str)
#define DMSG_HEX(num)       printf (" %02X", num)
#define DMSG_INT(num)       printf (" %d ", num)
#else
#define DMSG(args...)
#define DMSG_STR(str)
#define DMSG_HEX(num)
#define DMSG_INT(num)
#endif

#endif