summaryrefslogtreecommitdiff
path: root/firmware/export/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/rtc.h')
-rw-r--r--firmware/export/rtc.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/rtc.h b/firmware/export/rtc.h
index 88413c795f..28a4a2636a 100644
--- a/firmware/export/rtc.h
+++ b/firmware/export/rtc.h
@@ -22,7 +22,16 @@
22#include <stdbool.h> 22#include <stdbool.h>
23 23
24#ifdef CONFIG_RTC 24#ifdef CONFIG_RTC
25
26/* Common functions for all targets */
25void rtc_init(void); 27void rtc_init(void);
28int rtc_read_datetime(unsigned char* buf);
29int rtc_write_datetime(unsigned char* buf);
30
31#if CONFIG_RTC == RTC_M41ST84W
32
33/* The RTC in the Archos devices is used for much more than just the clock
34 data */
26int rtc_read(unsigned char address); 35int rtc_read(unsigned char address);
27int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes); 36int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes);
28int rtc_write(unsigned char address, unsigned char value); 37int rtc_write(unsigned char address, unsigned char value);
@@ -35,6 +44,8 @@ bool rtc_check_alarm_started(bool release_alarm);
35bool rtc_check_alarm_flag(void); 44bool rtc_check_alarm_flag(void);
36#endif /* HAVE_ALARM_MOD */ 45#endif /* HAVE_ALARM_MOD */
37 46
47#endif /* RTC_M41ST84W */
48
38#endif /* CONFIG_RTC */ 49#endif /* CONFIG_RTC */
39 50
40#endif 51#endif