alarm with reset
Dependencies: RTC-DS1307 mbed
debug.h@1:bd4c4722c453, 2017-05-23 (annotated)
- Committer:
- Owenmatthewmcgowan
- Date:
- Tue May 23 14:14:49 2017 +0000
- Revision:
- 1:bd4c4722c453
156
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Owenmatthewmcgowan | 1:bd4c4722c453 | 1 | #ifndef __DEBUG_H__ |
Owenmatthewmcgowan | 1:bd4c4722c453 | 2 | #define __DEBUG_H__ |
Owenmatthewmcgowan | 1:bd4c4722c453 | 3 | |
Owenmatthewmcgowan | 1:bd4c4722c453 | 4 | |
Owenmatthewmcgowan | 1:bd4c4722c453 | 5 | #ifdef DEBUG |
Owenmatthewmcgowan | 1:bd4c4722c453 | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Owenmatthewmcgowan | 1:bd4c4722c453 | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Owenmatthewmcgowan | 1:bd4c4722c453 | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
Owenmatthewmcgowan | 1:bd4c4722c453 | 9 | #else |
Owenmatthewmcgowan | 1:bd4c4722c453 | 10 | #define INFO(x, ...) |
Owenmatthewmcgowan | 1:bd4c4722c453 | 11 | #define WARN(x, ...) |
Owenmatthewmcgowan | 1:bd4c4722c453 | 12 | #define ERR(x, ...) |
Owenmatthewmcgowan | 1:bd4c4722c453 | 13 | #endif |
Owenmatthewmcgowan | 1:bd4c4722c453 | 14 | |
Owenmatthewmcgowan | 1:bd4c4722c453 | 15 | |
Owenmatthewmcgowan | 1:bd4c4722c453 | 16 | #endif |