Izvorne datoteke za TinyRTC DS1307 sa I2C komunikacijom.
Dependents: Detektor_Pokreta Dino_Martic_Programski
debug.h
00001 //Debug library korišten za RTC1307 00002 00003 #ifndef __DEBUG_H__ 00004 #define __DEBUG_H__ 00005 00006 00007 #ifdef DEBUG 00008 #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); 00009 #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); 00010 #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); 00011 #else 00012 #define INFO(x, ...) 00013 #define WARN(x, ...) 00014 #define ERR(x, ...) 00015 #endif 00016 00017 00018 #endif 00019
Generated on Wed Jul 13 2022 19:34:43 by
1.7.2