summaryrefslogtreecommitdiff
path: root/firmware/export/rtc.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-11 00:47:40 +0000
committerDave Chapman <dave@dchapman.com>2005-12-11 00:47:40 +0000
commit790b365595ce0e3407777b9ff37494ec7fe7db0f (patch)
tree0af5f8bcbe9c4b5edbdb55f137f02fc0989480d0 /firmware/export/rtc.h
parent6ddfac0806a15a8771725ec4fdc39247f36949ff (diff)
downloadrockbox-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.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