summaryrefslogtreecommitdiff
path: root/avr/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'avr/debug.h')
-rw-r--r--avr/debug.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/avr/debug.h b/avr/debug.h
new file mode 100644
index 0000000..39ae55c
--- /dev/null
+++ b/avr/debug.h
@@ -0,0 +1,11 @@
+
+#ifndef DEBUG_H_
+#define DEBUG_H_
+
+#ifdef DEBUG
+#define DBG_P(lvl, ...) if (DEBUG>=lvl) fprintf_P( stderr, __VA_ARGS__ )
+#else
+#define DBG_P(lvl, ...)
+#endif
+
+#endif /* DEBUG_H_ */