Statistics
| Branch: | Tag: | Revision:

root / analog_exp / debug.h @ 168:bfc84ee2839b

History | View | Annotate | Download (311 Bytes)

1
#ifndef __debug_h_
2
#define __debug_h_
3
4
#include <avr/pgmspace.h>
5
6
void debug_setup(void);
7
8
#ifdef DEBUG
9
    void debug_printf(const char *fmt, ...);
10
#   define debugf(format, ...) { \
11
        debug_printf(PSTR(format), ## __VA_ARGS__); \
12
    }
13
#else
14
#   define debugf(format, ...)
15
#endif
16
17
#endif // __debug_h_
18