![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
trabajo de creacion de un despertador por i2c configurado por un encoder
Dependencies: DebouncedIn QEI RTC-DS1307 mbed
Fork of I2C by
debug.h@5:d38b972a1813, 2015-11-23 (annotated)
- Committer:
- GermanD
- Date:
- Mon Nov 23 14:44:24 2015 +0000
- Revision:
- 5:d38b972a1813
- Parent:
- 2:3be003301107
Tarea para configurar una alarma despertadora en el mes, a?o y hora que elijamos
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
leihen | 2:3be003301107 | 1 | #ifndef __DEBUG_H__ |
leihen | 2:3be003301107 | 2 | #define __DEBUG_H__ |
leihen | 2:3be003301107 | 3 | |
leihen | 2:3be003301107 | 4 | |
leihen | 2:3be003301107 | 5 | #ifdef DEBUG |
leihen | 2:3be003301107 | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 2:3be003301107 | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 2:3be003301107 | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
leihen | 2:3be003301107 | 9 | #else |
leihen | 2:3be003301107 | 10 | #define INFO(x, ...) |
leihen | 2:3be003301107 | 11 | #define WARN(x, ...) |
leihen | 2:3be003301107 | 12 | #define ERR(x, ...) |
leihen | 2:3be003301107 | 13 | #endif |
leihen | 2:3be003301107 | 14 | |
leihen | 2:3be003301107 | 15 | |
leihen | 2:3be003301107 | 16 | #endif |