diff options
author | Leo C | 2014-06-20 23:42:34 +0200 |
---|---|---|
committer | Leo C | 2014-06-20 23:42:34 +0200 |
commit | 6b81b39f9a07d5192947a7bd3a605f75fc9df475 (patch) | |
tree | eb11c246b653c24a5907bc199cc1dae493599c67 /stm32/debug.h | |
parent | 1fcc9b6b8417e076c289a7b8852bab562426da7a (diff) | |
download | z180-stamp-6b81b39f9a07d5192947a7bd3a605f75fc9df475.zip |
Interrupt driven Serial I/O, msg-fifo, do_msg..., debug msgs
Diffstat (limited to 'stm32/debug.h')
-rw-r--r-- | stm32/debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stm32/debug.h b/stm32/debug.h new file mode 100644 index 0000000..d542317 --- /dev/null +++ b/stm32/debug.h @@ -0,0 +1,11 @@ + +#ifndef DEBUG_H_ +#define DEBUG_H_ + +#ifdef DEBUG +#define DBG_P(lvl, ...) if (DEBUG>=lvl) fprintf( stderr, __VA_ARGS__ ) +#else +#define DBG_P(lvl, ...) +#endif + +#endif /* DEBUG_H_ */ |