diff options
Diffstat (limited to 'firmware/export/rtc.h')
-rw-r--r-- | firmware/export/rtc.h | 11 |
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 */ | ||
25 | void rtc_init(void); | 27 | void rtc_init(void); |
28 | int rtc_read_datetime(unsigned char* buf); | ||
29 | int 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 */ | ||
26 | int rtc_read(unsigned char address); | 35 | int rtc_read(unsigned char address); |
27 | int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes); | 36 | int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes); |
28 | int rtc_write(unsigned char address, unsigned char value); | 37 | int rtc_write(unsigned char address, unsigned char value); |
@@ -35,6 +44,8 @@ bool rtc_check_alarm_started(bool release_alarm); | |||
35 | bool rtc_check_alarm_flag(void); | 44 | bool 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 |