From 790b365595ce0e3407777b9ff37494ec7fe7db0f Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Sun, 11 Dec 2005 00:47:40 +0000 Subject: 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 --- firmware/export/rtc.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'firmware/export') 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 @@ #include #ifdef CONFIG_RTC + +/* Common functions for all targets */ void rtc_init(void); +int rtc_read_datetime(unsigned char* buf); +int rtc_write_datetime(unsigned char* buf); + +#if CONFIG_RTC == RTC_M41ST84W + +/* The RTC in the Archos devices is used for much more than just the clock + data */ int rtc_read(unsigned char address); int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes); int rtc_write(unsigned char address, unsigned char value); @@ -35,6 +44,8 @@ bool rtc_check_alarm_started(bool release_alarm); bool rtc_check_alarm_flag(void); #endif /* HAVE_ALARM_MOD */ +#endif /* RTC_M41ST84W */ + #endif /* CONFIG_RTC */ #endif -- cgit v1.2.3