forked from len0rd/rockbox
remove runtime detection of h1x0 series RTC MOD, but leave driver code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12554 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
909b9462da
commit
ae08eeb4ff
11 changed files with 11 additions and 120 deletions
|
|
@ -49,19 +49,6 @@ struct tm *get_time(void)
|
|||
#ifdef CONFIG_RTC
|
||||
static long timeout = 0;
|
||||
|
||||
#if CONFIG_RTC == RTC_DS1339_DS3231
|
||||
if(!rtc_detected) {
|
||||
tm.tm_sec = 0;
|
||||
tm.tm_min = 0;
|
||||
tm.tm_hour = 0;
|
||||
tm.tm_mday = 1;
|
||||
tm.tm_mon = 0;
|
||||
tm.tm_year = 70;
|
||||
tm.tm_wday = 1;
|
||||
tm.tm_yday = 0; /* Not implemented for now */
|
||||
tm.tm_isdst = -1; /* Not implemented for now */
|
||||
} else
|
||||
#endif
|
||||
/* Don't read the RTC more than once per second */
|
||||
if (current_tick > timeout) {
|
||||
char rtcbuf[7];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue