]>
Commit | Line | Data |
---|---|---|
0c5890bb L |
1 | |
2 | #ifndef DEBUG_H_ | |
3 | #define DEBUG_H_ | |
4 | ||
e7895944 L |
5 | #include <avr/pgmspace.h> |
6 | ||
0c5890bb | 7 | #ifdef DEBUG |
e7895944 L |
8 | #define DBG_P(lvl, format, ...) if (DEBUG>=lvl) \ |
9 | fprintf_P( stderr, PSTR(format), ##__VA_ARGS__ ) | |
0c5890bb L |
10 | #else |
11 | #define DBG_P(lvl, ...) | |
12 | #endif | |
13 | ||
14 | #endif /* DEBUG_H_ */ |