You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
340 B
19 lines
340 B
/**
|
|
* TODO file description
|
|
*/
|
|
|
|
#ifndef ZAVLAHA_DS_RTC_H
|
|
#define ZAVLAHA_DS_RTC_H
|
|
|
|
|
|
struct rtc_time {
|
|
uint8_t hour;
|
|
uint8_t minute;
|
|
uint8_t second;
|
|
uint8_t weekday; // 0-6, We use this as a counter for dry days
|
|
};
|
|
|
|
int rtc_get_time(struct rtc_time *dest);
|
|
int rtc_set_time(const struct rtc_time *time);
|
|
|
|
#endif //ZAVLAHA_DS_RTC_H
|
|
|