summaryrefslogtreecommitdiff
path: root/firmware
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 /firmware
parentd4e527b8110e2a52ea1d34258929763daf99aa81 (diff)
downloadrockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.tar.gz
rockbox-76994fb50e81d9fe319d287f863ce8dc39b6a145.zip
no backlight for Ondio
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5061 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c26
1 files changed, 21 insertions, 5 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 0b3ac5856d..2a726b65a4 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -28,6 +28,13 @@
28#include "power.h" 28#include "power.h"
29#include "system.h" 29#include "system.h"
30 30
31const char backlight_timeout_value[19] =
32{
33 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90
34};
35
36#ifdef HAVE_BACKLIGHT
37
31#define BACKLIGHT_ON 1 38#define BACKLIGHT_ON 1
32#define BACKLIGHT_OFF 2 39#define BACKLIGHT_OFF 2
33 40
@@ -42,11 +49,6 @@ static bool backlight_on_when_charging = 0;
42static int backlight_timer; 49static int backlight_timer;
43static unsigned int backlight_timeout = 5; 50static unsigned int backlight_timeout = 5;
44 51
45const char backlight_timeout_value[19] =
46{
47 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90
48};
49
50void backlight_thread(void) 52void backlight_thread(void)
51{ 53{
52 struct event ev; 54 struct event ev;
@@ -175,3 +177,17 @@ void backlight_init(void)
175 177
176 backlight_on(); 178 backlight_on();
177} 179}
180
181#else /* no backlight, empty dummy functions */
182
183void backlight_init(void) {}
184void backlight_on(void) {}
185void backlight_off(void) {}
186void backlight_tick(void) {}
187int backlight_get_timeout(void) {return 0;}
188void backlight_set_timeout(int index) {(void)index;}
189bool backlight_get_on_when_charging(void) {return 0;}
190void backlight_set_on_when_charging(bool yesno) {(void)yesno;}
191
192#endif /* #ifdef HAVE_BACKLIGHT */
193