diff options
author | Dave Chapman <dave@dchapman.com> | 2005-12-11 00:47:40 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-12-11 00:47:40 +0000 |
commit | 790b365595ce0e3407777b9ff37494ec7fe7db0f (patch) | |
tree | 0af5f8bcbe9c4b5edbdb55f137f02fc0989480d0 /firmware/export/rtc.h | |
parent | 6ddfac0806a15a8771725ec4fdc39247f36949ff (diff) | |
download | rockbox-790b365595ce0e3407777b9ff37494ec7fe7db0f.tar.gz rockbox-790b365595ce0e3407777b9ff37494ec7fe7db0f.zip |
Reworking of Archos RTC code to create a (slightly) more abstract RTC api
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8216 a1c6a512-1295-4272-9138-f99709370657
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 |