summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/rtc/rtc_tcc77x.c
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2010-08-28 10:17:19 +0000
committerBertrik Sikken <bertrik@sikken.nl>2010-08-28 10:17:19 +0000
commita290ce4222b401b0b4af5b3378a00b757bf63d2e (patch)
tree51500a53d4884678613cb9d626c1f110dc211930 /firmware/drivers/rtc/rtc_tcc77x.c
parent032502182b7ec69c8ea82246fad86148ddb042d8 (diff)
downloadrockbox-a290ce4222b401b0b4af5b3378a00b757bf63d2e.tar.gz
rockbox-a290ce4222b401b0b4af5b3378a00b757bf63d2e.zip
tcc77x targets: various minor cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27913 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/rtc/rtc_tcc77x.c')
-rw-r--r--firmware/drivers/rtc/rtc_tcc77x.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/drivers/rtc/rtc_tcc77x.c b/firmware/drivers/rtc/rtc_tcc77x.c
index 0ae4059f8a..a85c93d65a 100644
--- a/firmware/drivers/rtc/rtc_tcc77x.c
+++ b/firmware/drivers/rtc/rtc_tcc77x.c
@@ -27,22 +27,24 @@ void rtc_init(void)
{
}
-int rtc_read_datetime(unsigned char* buf)
+int rtc_read_datetime(struct tm *tm)
{
-
+ (void)tm;
+ return 0;
}
-int rtc_write_datetime(unsigned char* buf)
+int rtc_write_datetime(const struct tm *tm)
{
+ (void)tm;
return 1;
}
+#ifdef HAVE_RTC_ALARM
/**
* Checks to see if an alarm interrupt has triggered since last we checked.
*/
bool rtc_check_alarm_flag(void)
{
-
}
/**
@@ -74,4 +76,6 @@ void rtc_get_alarm(int *h, int *m)
// *m = ((buf[0] >> 4) & 0x7)*10 + (buf[0] & 0x0f);
// *h = ((buf[1] >> 4) & 0x3)*10 + (buf[1] & 0x0f);
}
+#endif /* HAVE_RTC_ALARM */
+