blob: ea67a99e5ebf6bc12e2dd1e1d989e63355b72027 (
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( stdout, PSTR(format), ##__VA_ARGS__ )
#else
#define DBG_P(lvl, ...)
#endif
#endif /* DEBUG_H_ */
|