rtc: Add epoch convertion functions

Thanks @shchmue for the HOS conversion
This commit is contained in:
CTCaer
2019-12-14 22:27:07 +02:00
parent 7604239237
commit 2aaa0331ac
4 changed files with 190 additions and 2 deletions

View File

@@ -71,5 +71,7 @@ typedef struct _rtc_time_t {
void max77620_rtc_get_time(rtc_time_t *time);
void max77620_rtc_stop_alarm();
void max77620_rtc_epoch_to_date(u32 epoch, rtc_time_t *time);
u32 max77620_rtc_date_to_epoch(const rtc_time_t *time, bool hos_encoding);
#endif /* _MFD_MAX77620_RTC_H_ */