Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: PN532_GPIO PN532_ReadUid EX_encoder_PID_QianYuyangV4
Fork of LibPN532 by
Diff: PN532/PN532_debug.h
- Revision:
- 0:db8030e71f55
- Child:
- 3:685e0bf1409d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PN532/PN532_debug.h Tue Sep 13 06:01:19 2016 +0000
@@ -0,0 +1,21 @@
+#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
