Ejemplo RTC

Dependencies:   Debounced FPointer RTC-DS1307 TextLCD keypad mbed

Fork of IngresoHORA by Jesse Beltran

Committer:
Jesse
Date:
Thu May 01 00:37:00 2014 +0000
Revision:
3:53a2fd2fe4cb
Parent:
0:7eff3c322f61
Tarea

Who changed what in which revision?

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