summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc')
-rw-r--r--firmware/drivers/rtc/rtc_e8564.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/rtc/rtc_e8564.c b/firmware/drivers/rtc/rtc_e8564.c
index 54e663424b..7a02ec6cdc 100644
--- a/firmware/drivers/rtc/rtc_e8564.c
+++ b/firmware/drivers/rtc/rtc_e8564.c
@@ -109,6 +109,7 @@ int rtc_write_datetime(const struct tm *tm)
109 return 1; 109 return 1;
110} 110}
111 111
112#ifdef HAVE_RTC_ALARM
112void rtc_set_alarm(int h, int m) 113void rtc_set_alarm(int h, int m)
113{ 114{
114 unsigned char buf[4] = {0}; 115 unsigned char buf[4] = {0};
@@ -222,4 +223,5 @@ bool rtc_check_alarm_flag(void)
222 223
223 return (tmp & RTC_AF); 224 return (tmp & RTC_AF);
224} 225}
226#endif /* HAVE_RTC_ALARM */
225 227