summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc/rtc_tcc77x.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc/rtc_tcc77x.c')
-rw-r--r--firmware/drivers/rtc/rtc_tcc77x.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/drivers/rtc/rtc_tcc77x.c b/firmware/drivers/rtc/rtc_tcc77x.c
index 0ae4059f8a..a85c93d65a 100644
--- a/firmware/drivers/rtc/rtc_tcc77x.c
+++ b/firmware/drivers/rtc/rtc_tcc77x.c
@@ -27,22 +27,24 @@ void rtc_init(void)
27{ 27{
28} 28}
29 29
30int rtc_read_datetime(unsigned char* buf) 30int rtc_read_datetime(struct tm *tm)
31{ 31{
32 32 (void)tm;
33 return 0;
33} 34}
34 35
35int rtc_write_datetime(unsigned char* buf) 36int rtc_write_datetime(const struct tm *tm)
36{ 37{
38 (void)tm;
37 return 1; 39 return 1;
38} 40}
39 41
42#ifdef HAVE_RTC_ALARM
40/** 43/**
41 * Checks to see if an alarm interrupt has triggered since last we checked. 44 * Checks to see if an alarm interrupt has triggered since last we checked.
42 */ 45 */
43bool rtc_check_alarm_flag(void) 46bool rtc_check_alarm_flag(void)
44{ 47{
45
46} 48}
47 49
48/** 50/**
@@ -74,4 +76,6 @@ void rtc_get_alarm(int *h, int *m)
74// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f); 76// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f);
75// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f); 77// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f);
76} 78}
79#endif /* HAVE_RTC_ALARM */
80
77 81