Library for Real Time Clock module MCP97410 based on Library for DS1307
Fork of RTC-DS1307 by
debug.h@10:780027029afe, 2015-01-07 (annotated)
- Committer:
- charly
- Date:
- Wed Jan 07 21:46:02 2015 +0000
- Revision:
- 10:780027029afe
RTC-part working for MCP97410
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charly | 10:780027029afe | 1 | #ifndef __DEBUG_H__ |
charly | 10:780027029afe | 2 | #define __DEBUG_H__ |
charly | 10:780027029afe | 3 | |
charly | 10:780027029afe | 4 | |
charly | 10:780027029afe | 5 | #ifdef DEBUG |
charly | 10:780027029afe | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
charly | 10:780027029afe | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
charly | 10:780027029afe | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
charly | 10:780027029afe | 9 | #else |
charly | 10:780027029afe | 10 | #define INFO(x, ...) |
charly | 10:780027029afe | 11 | #define WARN(x, ...) |
charly | 10:780027029afe | 12 | #define ERR(x, ...) |
charly | 10:780027029afe | 13 | #endif |
charly | 10:780027029afe | 14 | |
charly | 10:780027029afe | 15 | |
charly | 10:780027029afe | 16 | #endif |
charly | 10:780027029afe | 17 |