summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-18 10:07:27 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-18 10:07:27 +0000
commit3a37f46fc92fe7f9846a4077cc1a985c500d1174 (patch)
tree76541ae462f02ede816ab3f9b42f5207f068658c /firmware/export
parentda88e84f482c8c96c0d64bf67969b6e9dd9a8379 (diff)
downloadrockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.tar.gz
rockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.zip
Fix CONFIG_BACKLIGHT warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/backlight.h4
-rw-r--r--firmware/export/button.h3
-rw-r--r--firmware/export/config.h4
3 files changed, 7 insertions, 4 deletions
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 1cd6c47f36..2873666dd8 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -26,7 +26,7 @@ void backlight_on(void);
26void backlight_off(void); 26void backlight_off(void);
27void backlight_set_timeout(int index); 27void backlight_set_timeout(int index);
28 28
29#ifdef CONFIG_BACKLIGHT 29#if CONFIG_BACKLIGHT
30void backlight_init(void); 30void backlight_init(void);
31 31
32#if defined(IAUDIO_X5) && !defined(SIMULATOR) 32#if defined(IAUDIO_X5) && !defined(SIMULATOR)
@@ -54,7 +54,7 @@ void lcd_set_sleep_after_backlight_off(int index);
54extern const signed char lcd_sleep_timeout_value[]; 54extern const signed char lcd_sleep_timeout_value[];
55#endif 55#endif
56 56
57#else /* ndef CONFIG_BACKLIGHT */ 57#else /* CONFIG_BACKLIGHT == 0 */
58#define backlight_init() 58#define backlight_init()
59#endif /* CONFIG_BACKLIGHT */ 59#endif /* CONFIG_BACKLIGHT */
60 60
diff --git a/firmware/export/button.h b/firmware/export/button.h
index 102d542d27..ea3effcaba 100644
--- a/firmware/export/button.h
+++ b/firmware/export/button.h
@@ -1,4 +1,3 @@
1
2/*************************************************************************** 1/***************************************************************************
3 * __________ __ ___. 2 * __________ __ ___.
4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___ 3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
@@ -34,7 +33,7 @@ void button_clear_queue(void);
34#ifdef HAVE_LCD_BITMAP 33#ifdef HAVE_LCD_BITMAP
35void button_set_flip(bool flip); /* turn 180 degrees */ 34void button_set_flip(bool flip); /* turn 180 degrees */
36#endif 35#endif
37#ifdef CONFIG_BACKLIGHT 36#if CONFIG_BACKLIGHT
38void set_backlight_filter_keypress(bool value); 37void set_backlight_filter_keypress(bool value);
39#ifdef HAVE_REMOTE_LCD 38#ifdef HAVE_REMOTE_LCD
40void set_remote_backlight_filter_keypress(bool value); 39void set_remote_backlight_filter_keypress(bool value);
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 8283b37fc8..1a3e0be325 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -230,6 +230,10 @@
230#define CONFIG_LED 0 230#define CONFIG_LED 0
231#endif 231#endif
232 232
233#ifndef CONFIG_BACKLIGHT
234#define CONFIG_BACKLIGHT 0
235#endif
236
233#ifndef CONFIG_CHARGING 237#ifndef CONFIG_CHARGING
234#define CONFIG_CHARGING 0 238#define CONFIG_CHARGING 0
235#endif 239#endif