summaryrefslogtreecommitdiff
path: root/firmware/drivers/rtc.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/rtc.h')
-rw-r--r--firmware/drivers/rtc.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/firmware/drivers/rtc.h b/firmware/drivers/rtc.h
index 7b101ee62e..fd1cd50274 100644
--- a/firmware/drivers/rtc.h
+++ b/firmware/drivers/rtc.h
@@ -7,7 +7,7 @@
7 * \/ \/ \/ \/ \/ 7 * \/ \/ \/ \/ \/
8 * $Id$ 8 * $Id$
9 * 9 *
10 * Copyright (C) 2002 by Linus Nielsen Feltzing 10 * Copyright (C) 2002 by Linus Nielsen Feltzing, Uwe Freese
11 * 11 *
12 * All files in this archive are subject to the GNU General Public License. 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. 13 * See the file COPYING in the source tree root for full license agreement.
@@ -19,11 +19,20 @@
19#ifndef _RTC_H_ 19#ifndef _RTC_H_
20#define _RTC_H_ 20#define _RTC_H_
21 21
22#include <stdbool.h>
23
22#ifdef HAVE_RTC 24#ifdef HAVE_RTC
23void rtc_init(void); 25void rtc_init(void);
24int rtc_read(unsigned char address); 26int rtc_read(unsigned char address);
25int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes); 27int rtc_read_multiple(unsigned char address, unsigned char *buf, int numbytes);
26int rtc_write(unsigned char address, unsigned char value); 28int rtc_write(unsigned char address, unsigned char value);
27#endif 29
30#ifdef HAVE_ALARM_MOD
31void rtc_set_alarm(int h, int m);
32void rtc_get_alarm(int *h, int *m);
33bool rtc_enable_alarm(bool enable);
34#endif /* HAVE_ALARM_MOD */
35
36#endif /* HAVE_RTC */
28 37
29#endif 38#endif