1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Linus Nielsen Feltzing, Uwe Freese
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
30 /* Common functions for all targets */
32 int rtc_read_datetime(unsigned char* buf
);
33 int rtc_write_datetime(unsigned char* buf
);
35 #if CONFIG_RTC == RTC_M41ST84W
37 /* The RTC in the Archos devices is used for much more than just the clock
39 int rtc_read(unsigned char address
);
40 int rtc_read_multiple(unsigned char address
, unsigned char *buf
, int numbytes
);
41 int rtc_write(unsigned char address
, unsigned char value
);
43 #endif /* RTC_M41ST84W */
46 void rtc_set_alarm(int h
, int m
);
47 void rtc_get_alarm(int *h
, int *m
);
48 bool rtc_enable_alarm(bool enable
);
49 bool rtc_check_alarm_started(bool release_alarm
);
50 bool rtc_check_alarm_flag(void);
51 #endif /* HAVE_RTC_ALARM */
53 #endif /* CONFIG_RTC */