blob: c341301a9de49d0953122956005d92beb1a17793 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#ifndef DEBUG_H_
#define DEBUG_H_
#include <avr/pgmspace.h>
#ifdef DEBUG
#define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \
fprintf_P( stderr, PSTR(format), ##__VA_ARGS__ )
#else
#define DBG_P(lvl, ...)
#endif
#endif /* DEBUG_H_ */
|