FS#8961 - Anti-Aliased Fonts.
[kugel-rb.git] / firmware / export / rtc.h
blob6d21b1f37fda4aa86ed5c417aa9b4a132fd804fe
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
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 ****************************************************************************/
21 #ifndef _RTC_H_
22 #define _RTC_H_
24 #include <stdbool.h>
25 #include "system.h"
26 #include "config.h"
28 #if CONFIG_RTC
30 /* Common functions for all targets */
31 void rtc_init(void);
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
38 data */
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 */
45 #ifdef HAVE_RTC_ALARM
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 */
55 #endif