summaryrefslogtreecommitdiffstats
path: root/src/include/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/rtc.h')
-rw-r--r--src/include/rtc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/rtc.h b/src/include/rtc.h
index 53e03c1b7964..e6547857697e 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_ */