1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2002 by Linus Nielsen Feltzing, Uwe Freese
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
28 extern const int dayname
[];
30 extern const int monthname
[];
32 /* Common functions for all targets */
34 int rtc_read_datetime(unsigned char* buf
);
35 int rtc_write_datetime(unsigned char* buf
);
37 #if CONFIG_RTC == RTC_M41ST84W
39 /* The RTC in the Archos devices is used for much more than just the clock
41 int rtc_read(unsigned char address
);
42 int rtc_read_multiple(unsigned char address
, unsigned char *buf
, int numbytes
);
43 int rtc_write(unsigned char address
, unsigned char value
);
45 #endif /* RTC_M41ST84W */
48 void rtc_set_alarm(int h
, int m
);
49 void rtc_get_alarm(int *h
, int *m
);
50 bool rtc_enable_alarm(bool enable
);
51 bool rtc_check_alarm_started(bool release_alarm
);
52 bool rtc_check_alarm_flag(void);
53 #endif /* HAVE_RTC_ALARM */
55 #endif /* CONFIG_RTC */