summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2005-12-04 15:23:47 +0000
committerDave Chapman <dave@dchapman.com>2005-12-04 15:23:47 +0000
commit8c800cf59af23eaa22b97e89556640f63998b9bd (patch)
tree96115da5d0597b7625c637158364866d365258e1 /apps/plugins
parent0ea71be34895a225e137af20faea2adc9f113853 (diff)
downloadrockbox-8c800cf59af23eaa22b97e89556640f63998b9bd.zip
rockbox-8c800cf59af23eaa22b97e89556640f63998b9bd.tar.gz
rockbox-8c800cf59af23eaa22b97e89556640f63998b9bd.tar.bz2
rockbox-8c800cf59af23eaa22b97e89556640f63998b9bd.tar.xz
Replace references to HAVE_RTC with CONFIG_RTC and remove the HAVE_RTC defines from config-*.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8147 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/SOURCES4
-rw-r--r--apps/plugins/battery_test.c2
-rw-r--r--apps/plugins/bounce.c8
-rw-r--r--apps/plugins/calendar.c6
-rw-r--r--apps/plugins/clock.c2
5 files changed, 11 insertions, 11 deletions
diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES
index b335a06..c2ddc3d 100644
--- a/apps/plugins/SOURCES
+++ b/apps/plugins/SOURCES
@@ -56,10 +56,10 @@ video.c
#endif
vu_meter.c
-#ifdef HAVE_RTC /* Recorder models only */
+#ifdef CONFIG_RTC /* Recorder models only */
calendar.c
clock.c
-#endif /* #ifdef HAVE_RTC */
+#endif /* #ifdef CONFIG_RTC */
#if CONFIG_KEYPAD != ONDIO_PAD
/* gradually bring in the ones not working yet */
diff --git a/apps/plugins/battery_test.c b/apps/plugins/battery_test.c
index adb1a2d..31ae801 100644
--- a/apps/plugins/battery_test.c
+++ b/apps/plugins/battery_test.c
@@ -87,7 +87,7 @@ enum plugin_status loop(void)
rb->splash(HZ, true, "Failed creating /battery.log");
break;
}
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
t = rb->get_time();
#else
{
diff --git a/apps/plugins/bounce.c b/apps/plugins/bounce.c
index 3a44a4c..487965a 100644
--- a/apps/plugins/bounce.c
+++ b/apps/plugins/bounce.c
@@ -230,7 +230,7 @@ struct counter values[]={
{"ydist", -6},
};
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
static unsigned char yminute[]={
53,53,52,52,51,50,49,47,46,44,42,40,38,36,34,32,29,27,25,23,21,19,17,16,14,13,12,11,11,10,10,10,11,11,12,13,14,16,17,19,21,23,25,27,29,31,34,36,38,40,42,44,46,47,49,50,51,52,52,53,
};
@@ -277,7 +277,7 @@ static void addclock(void)
yminute[(i+1)%60]);
}
}
-#endif /* HAVE_RTC */
+#endif /* CONFIG_RTC */
#define DRAW_WIDTH (LCD_WIDTH + LETTER_WIDTH*2)
@@ -330,7 +330,7 @@ static int scrollit(void)
yy += YADD;
xx+= DRAW_WIDTH/LETTERS_ON_SCREEN;
}
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
addclock();
#endif
rb->lcd_update();
@@ -385,7 +385,7 @@ static int loopit(void)
x+= speed[xsanke&15] + values[NUM_XADD].num;
rb->lcd_clear_display();
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
addclock();
#endif
if(timeout) {
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index df23afd..5cb04b5 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -19,7 +19,7 @@
****************************************************************************/
#include "plugin.h"
-#if defined(HAVE_LCD_BITMAP) && defined(HAVE_RTC)
+#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC)
#include <timefuncs.h>
@@ -69,7 +69,7 @@ static int calc_weekday( struct shown *shown )
static void calendar_init(struct today *today, struct shown *shown)
{
int w,h;
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
struct tm *tm;
#else
(void)today;
@@ -81,7 +81,7 @@ static void calendar_init(struct today *today, struct shown *shown)
use_system_font = true;
}
rb->lcd_clear_display();
-#ifdef HAVE_RTC
+#ifdef CONFIG_RTC
tm = rb->get_time();
today->mon = tm->tm_mon +1;
today->year = 2000+tm->tm_year%100;
diff --git a/apps/plugins/clock.c b/apps/plugins/clock.c
index 6b06b1a..9c940dc 100644
--- a/apps/plugins/clock.c
+++ b/apps/plugins/clock.c
@@ -78,7 +78,7 @@ Original release, featuring analog / digital modes and a few options.
#include "plugin.h"
#include "time.h"
-#if defined(HAVE_LCD_BITMAP) && defined(HAVE_RTC)
+#if defined(HAVE_LCD_BITMAP) && defined(CONFIG_RTC)
#define CLOCK_VERSION "2.60"