From 0c5890bb8c70f34026315c9c5a1878cfd0bbea0d Mon Sep 17 00:00:00 2001 From: Leo C Date: Wed, 2 Jul 2014 15:24:17 +0200 Subject: New sub dir: avr. --- avr/debug.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 avr/debug.h (limited to 'avr/debug.h') 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_ */ -- cgit v1.2.3