19 #ifndef HARDWARE_AVR_RTC_H 20 #define HARDWARE_AVR_RTC_H 41 uint16_t now = millis();
42 if (now -
m_millis < 1000)
return (
false);
44 __asm__ __volatile__(
"cli" :::
"memory");
48 __asm__ __volatile__(
"" :::
"memory");
58 __asm__ __volatile__(
"cli" :::
"memory");
61 __asm__ __volatile__(
"" :::
"memory");
71 __asm__ __volatile__(
"cli" :::
"memory");
74 __asm__ __volatile__(
"" :::
"memory");
volatile uint16_t m_millis
void get_time(struct tm &now)
time_t mktime(struct tm *timeptr)
struct tm * gmtime_r(const time_t *timer, struct tm *timeptr)
void set_time(struct tm &now)
void set_time(time_t time)