Izvorne datoteke za TinyRTC DS1307 sa I2C komunikacijom.
Dependents: Detektor_Pokreta Dino_Martic_Programski
debug.h
- Committer:
- dmartic
- Date:
- 2020-01-20
- Revision:
- 12:67d9685eaeb0
File content as of revision 12:67d9685eaeb0:
//Debug library korišten za RTC1307 #ifndef __DEBUG_H__ #define __DEBUG_H__ #ifdef DEBUG #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__); #else #define INFO(x, ...) #define WARN(x, ...) #define ERR(x, ...) #endif #endif