Despertador con RTC-DS1307 y Encoder

Dependencies:   Debounced QEI RTC-DS1307 mbed

Committer:
Meli
Date:
Fri Nov 20 12:30:40 2015 +0000
Revision:
0:705ab0651f98
Despertador con RTC-DS1307 y Encoder

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Meli 0:705ab0651f98 1 #ifndef __DEBUG_H__
Meli 0:705ab0651f98 2 #define __DEBUG_H__
Meli 0:705ab0651f98 3
Meli 0:705ab0651f98 4
Meli 0:705ab0651f98 5 #ifdef DEBUG
Meli 0:705ab0651f98 6 #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
Meli 0:705ab0651f98 7 #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
Meli 0:705ab0651f98 8 #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
Meli 0:705ab0651f98 9 #else
Meli 0:705ab0651f98 10 #define INFO(x, ...)
Meli 0:705ab0651f98 11 #define WARN(x, ...)
Meli 0:705ab0651f98 12 #define ERR(x, ...)
Meli 0:705ab0651f98 13 #endif
Meli 0:705ab0651f98 14
Meli 0:705ab0651f98 15
Meli 0:705ab0651f98 16 #endif