forked from len0rd/rockbox
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
This commit is contained in:
parent
6ddfac0806
commit
790b365595
3 changed files with 61 additions and 26 deletions
|
@ -22,7 +22,16 @@
|
|||
#include <stdbool.h>
|
||||
|
||||
#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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue