diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/rtc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/rtc.h b/src/include/rtc.h index 53e03c1b79..e654785769 100644 --- a/src/include/rtc.h +++ b/src/include/rtc.h @@ -27,7 +27,13 @@ struct rtc_time int wday; }; +/* Implemented by the RTC driver (there can be only one) */ int rtc_set(const struct rtc_time *time); int rtc_get(struct rtc_time *time); +/* Common functions */ +int rtc_to_tm(int tim, struct rtc_time *tm); +unsigned long rtc_mktime(const struct rtc_time *tm); +void rtc_display(const struct rtc_time *tm); + #endif /* _RTC_H_ */ |