FS#10569 RTC driver cleanup
commit67758ec8cb491b4c69c942dfa889b615ddb002ec
authornls <nls@a1c6a512-1295-4272-9138-f99709370657>
Sat, 26 Sep 2009 14:58:32 +0000 (26 14:58 +0000)
committernls <nls@a1c6a512-1295-4272-9138-f99709370657>
Sat, 26 Sep 2009 14:58:32 +0000 (26 14:58 +0000)
tree5d380f1f32f317afc579798c5fc4d988e9c48122
parentc82b1ca553db77fa9d0c010bc426b4d4f3a074be
FS#10569 RTC driver cleanup
Change the RTC drivers so that the rtc_(read|write)_datetime functions now deal directly with the tm struct instead of passing a string of bcd digits to/from (set|get)_time .
This simplifies drivers for rtc's that do not use a bcd representation internally and cleans up some target specific code and #ifdefs in generic code. Implement simple stubs for the sim to avoid #ifdefing for that too.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22839 a1c6a512-1295-4272-9138-f99709370657
16 files changed:
firmware/common/timefuncs.c
firmware/drivers/rtc/rtc_as3514.c
firmware/drivers/rtc/rtc_ds1339_ds3231.c
firmware/drivers/rtc/rtc_e8564.c
firmware/drivers/rtc/rtc_jz4740.c
firmware/drivers/rtc/rtc_m41st84w.c
firmware/drivers/rtc/rtc_mc13783.c
firmware/drivers/rtc/rtc_mr100.c
firmware/drivers/rtc/rtc_pcf50605.c
firmware/drivers/rtc/rtc_pcf50606.c
firmware/drivers/rtc/rtc_rx5x348ab.c
firmware/drivers/rtc/rtc_s35390a.c
firmware/drivers/rtc/rtc_s3c2440.c
firmware/export/rtc.h
firmware/include/timefuncs.h
uisimulator/common/stubs.c