![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
En este archivo se encuentra la programación completa de la tarea de I2C (Alarma)
Dependencies: DebouncedIn QEI RTC-DS1307 mbed
debug.h@0:640817dd805d, 2015-11-23 (annotated)
- Committer:
- squinteroz
- Date:
- Mon Nov 23 02:56:33 2015 +0000
- Revision:
- 0:640817dd805d
En este archivo se encuentra la programaci?n de la tarea de I2C, la cual consiste en una alarma.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
squinteroz | 0:640817dd805d | 1 | #ifndef __DEBUG_H__ |
squinteroz | 0:640817dd805d | 2 | #define __DEBUG_H__ |
squinteroz | 0:640817dd805d | 3 | |
squinteroz | 0:640817dd805d | 4 | |
squinteroz | 0:640817dd805d | 5 | #ifdef DEBUG |
squinteroz | 0:640817dd805d | 6 | #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
squinteroz | 0:640817dd805d | 7 | #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
squinteroz | 0:640817dd805d | 8 | #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); |
squinteroz | 0:640817dd805d | 9 | #else |
squinteroz | 0:640817dd805d | 10 | #define INFO(x, ...) |
squinteroz | 0:640817dd805d | 11 | #define WARN(x, ...) |
squinteroz | 0:640817dd805d | 12 | #define ERR(x, ...) |
squinteroz | 0:640817dd805d | 13 | #endif |
squinteroz | 0:640817dd805d | 14 | |
squinteroz | 0:640817dd805d | 15 | |
squinteroz | 0:640817dd805d | 16 | #endif |