Izvorne datoteke za TinyRTC DS1307 sa I2C komunikacijom.

Dependents:   Detektor_Pokreta Dino_Martic_Programski

Committer:
dmartic
Date:
Mon Jan 20 13:01:21 2020 +0000
Revision:
12:67d9685eaeb0
Izvorne datoteke za TinyRTC DS1307 sa I2C komunikacijom.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dmartic 12:67d9685eaeb0 1 //Debug library korišten za RTC1307
dmartic 12:67d9685eaeb0 2
dmartic 12:67d9685eaeb0 3 #ifndef __DEBUG_H__
dmartic 12:67d9685eaeb0 4 #define __DEBUG_H__
dmartic 12:67d9685eaeb0 5
dmartic 12:67d9685eaeb0 6
dmartic 12:67d9685eaeb0 7 #ifdef DEBUG
dmartic 12:67d9685eaeb0 8 #define INFO(x, ...) std::printf("[INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
dmartic 12:67d9685eaeb0 9 #define WARN(x, ...) std::printf("[WARN: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
dmartic 12:67d9685eaeb0 10 #define ERR(x, ...) std::printf("[ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
dmartic 12:67d9685eaeb0 11 #else
dmartic 12:67d9685eaeb0 12 #define INFO(x, ...)
dmartic 12:67d9685eaeb0 13 #define WARN(x, ...)
dmartic 12:67d9685eaeb0 14 #define ERR(x, ...)
dmartic 12:67d9685eaeb0 15 #endif
dmartic 12:67d9685eaeb0 16
dmartic 12:67d9685eaeb0 17
dmartic 12:67d9685eaeb0 18 #endif
dmartic 12:67d9685eaeb0 19