summaryrefslogtreecommitdiff
path: root/avr/debug.h
diff options
context:
space:
mode:
authorLeo C2014-07-02 15:24:17 +0200
committerLeo C2014-07-02 15:24:17 +0200
commit0c5890bb8c70f34026315c9c5a1878cfd0bbea0d (patch)
tree25219cb3c74f5038f323ad7d33d9a878d3a034e0 /avr/debug.h
parent70da9bec89594932d89d8a8a0815e127f3359365 (diff)
downloadz180-stamp-0c5890bb8c70f34026315c9c5a1878cfd0bbea0d.zip
New sub dir: avr.
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_ */