From ae08eeb4ffeadb7b89f913180bdac099fc5c5071 Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Sat, 3 Mar 2007 00:11:20 +0000 Subject: 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 --- firmware/export/config-h120.h | 11 +---------- firmware/export/rtc.h | 7 ++----- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h index 1791bdf78b..e7fb73ea0f 100644 --- a/firmware/export/config-h120.h +++ b/firmware/export/config-h120.h @@ -45,16 +45,7 @@ /* Define this if you do software codec */ #define CONFIG_CODEC SWCODEC -/* Set to 1 if you want to build with RTC support */ -#if 0 -#ifndef SIMULATOR -/* RTC is autodetected on target only */ -#define CONFIG_RTC RTC_DS1339_DS3231 -#define HAVE_RTC_ALARM -#endif -#endif - - /* Define this if you have an remote lcd */ +/* Define this if you have an remote lcd */ #define HAVE_REMOTE_LCD #define CONFIG_LCD LCD_S1D15E06 diff --git a/firmware/export/rtc.h b/firmware/export/rtc.h index 1b0d215371..eea83d85bb 100644 --- a/firmware/export/rtc.h +++ b/firmware/export/rtc.h @@ -20,7 +20,8 @@ #define _RTC_H_ #include -#include +#include "system.h" +#include "config.h" #ifdef CONFIG_RTC @@ -28,10 +29,6 @@ extern const int dayname[]; extern const int monthname[]; -#if CONFIG_RTC == RTC_DS1339_DS3231 -extern bool rtc_detected; -#endif - /* Common functions for all targets */ void rtc_init(void); int rtc_read_datetime(unsigned char* buf); -- cgit v1.2.3