add time setter and calibration to RTC

This commit is contained in:
Edward Emelianov
2023-01-14 01:24:56 +03:00
parent c939c92fea
commit 44f7660ea0
9 changed files with 198 additions and 34 deletions

View File

@@ -34,3 +34,7 @@ typedef struct{
void rtc_setup();
void get_curtime(rtc_t *t);
int rtc_setdate(rtc_t *d);
int rtc_settime(rtc_t *t);
int rtc_setcalib(int calval);
int rtc_getcalib();