aboutsummaryrefslogtreecommitdiffstats
path: root/nrf52/log.h
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2019-06-13 18:00:42 -0400
committerBrian Cully <bjc@kublai.com>2019-06-22 16:18:03 -0400
commitfad3038b035db90c59f297891835d37fd97b79c5 (patch)
treee99ab8e4de5130dc9aca5ad35f3c6b8e0e82d263 /nrf52/log.h
downloadusb2btle-fad3038b035db90c59f297891835d37fd97b79c5.tar.gz
usb2btle-fad3038b035db90c59f297891835d37fd97b79c5.zip
Initial commit.
Diffstat (limited to 'nrf52/log.h')
-rw-r--r--nrf52/log.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/nrf52/log.h b/nrf52/log.h
new file mode 100644
index 0000000..b78fec0
--- /dev/null
+++ b/nrf52/log.h
@@ -0,0 +1,17 @@
+#ifndef LOG_H
+#define LOG_H
+
+#define DEBUG 0
+#if DEBUG
+#define dbgPrint(...) Serial.print(__VA_ARGS__)
+#define dbgPrintf(...) Serial.printf(__VA_ARGS__)
+#define dbgPrintln(...) Serial.println(__VA_ARGS__)
+#define dbgWrite(...) Serial.write(__VA_ARGS__)
+#else
+#define dbgPrint(...)
+#define dbgPrintf(...)
+#define dbgPrintln(...)
+#define dbgWrite(...)
+#endif
+
+#endif