summaryrefslogtreecommitdiff
path: root/uisimulator/common/stubs.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-03-08 20:54:42 +0000
committerThomas Jarosch <tomj@simonv.com>2011-03-08 20:54:42 +0000
commit4e42cd712c6c4bb952efededefc4d6947b52f43b (patch)
treee359bf3bc5fff2688c5a504823be9976c8982f19 /uisimulator/common/stubs.c
parent5c73e34d2d81545f59c5c664da3475251a5ac3c6 (diff)
downloadrockbox-4e42cd712c6c4bb952efededefc4d6947b52f43b.tar.gz
rockbox-4e42cd712c6c4bb952efededefc4d6947b52f43b.zip
RaaA: Add RTC support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29544 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common/stubs.c')
-rw-r--r--uisimulator/common/stubs.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 024afab14f..f8b8fdc912 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -234,10 +234,6 @@ void storage_spindown(int s)
234 storage_spinning = false; 234 storage_spinning = false;
235} 235}
236 236
237void rtc_init(void)
238{
239}
240
241int rtc_read(int address) 237int rtc_read(int address)
242{ 238{
243 return address ^ 0x55; 239 return address ^ 0x55;
@@ -250,20 +246,6 @@ int rtc_write(int address, int value)
250 return 0; 246 return 0;
251} 247}
252 248
253int rtc_read_datetime(struct tm *tm)
254{
255 time_t now = time(NULL);
256 *tm = *localtime(&now);
257
258 return 0;
259}
260
261int rtc_write_datetime(const struct tm *tm)
262{
263 (void)tm;
264 return 0;
265}
266
267#ifdef HAVE_RTC_ALARM 249#ifdef HAVE_RTC_ALARM
268void rtc_get_alarm(int *h, int *m) 250void rtc_get_alarm(int *h, int *m)
269{ 251{