summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 13:56:54 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-09-10 13:56:54 +0000
commit76994fb50e81d9fe319d287f863ce8dc39b6a145 (patch)
treeaf91e77e4b2c936f389042816b152a414fdceea9
parentd4e527b8110e2a52ea1d34258929763daf99aa81 (diff)
downloadrockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.zip
rockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.tar.gz
rockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.tar.bz2
rockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.tar.xz
no backlight for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5061 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/backlight.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 0b3ac58..2a726b6 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -28,6 +28,13 @@
#include "power.h"
#include "system.h"
+const char backlight_timeout_value[19] =
+{
+ -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90
+};
+
+#ifdef HAVE_BACKLIGHT
+
#define BACKLIGHT_ON 1
#define BACKLIGHT_OFF 2
@@ -42,11 +49,6 @@ static bool backlight_on_when_charging = 0;
static int backlight_timer;
static unsigned int backlight_timeout = 5;
-const char backlight_timeout_value[19] =
-{
- -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90
-};
-
void backlight_thread(void)
{
struct event ev;
@@ -175,3 +177,17 @@ void backlight_init(void)
backlight_on();
}
+
+#else /* no backlight, empty dummy functions */
+
+void backlight_init(void) {}
+void backlight_on(void) {}
+void backlight_off(void) {}
+void backlight_tick(void) {}
+int backlight_get_timeout(void) {return 0;}
+void backlight_set_timeout(int index) {(void)index;}
+bool backlight_get_on_when_charging(void) {return 0;}
+void backlight_set_on_when_charging(bool yesno) {(void)yesno;}
+
+#endif /* #ifdef HAVE_BACKLIGHT */
+