diff options
author | Leo C | 2014-07-02 15:24:17 +0200 |
---|---|---|
committer | Leo C | 2014-07-02 15:24:17 +0200 |
commit | 0c5890bb8c70f34026315c9c5a1878cfd0bbea0d (patch) | |
tree | 25219cb3c74f5038f323ad7d33d9a878d3a034e0 /avr/debug.h | |
parent | 70da9bec89594932d89d8a8a0815e127f3359365 (diff) | |
download | z180-stamp-0c5890bb8c70f34026315c9c5a1878cfd0bbea0d.zip |
New sub dir: avr.
Diffstat (limited to 'avr/debug.h')
-rw-r--r-- | avr/debug.h | 11 |
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_ */ |