Library for Real Time Clock module MCP97410 based on Library for DS1307
Fork of RTC-DS1307 by
debug.h@13:10e564536e23, 2015-03-08 (annotated)
- Committer:
- charly
- Date:
- Sun Mar 08 21:12:29 2015 +0000
- Revision:
- 13:10e564536e23
- Parent:
- 10:780027029afe
added Methods for reading and manipulating (inc/dec) the Calibration-Register of RTC
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 |