summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-23 09:17:34 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-23 09:17:34 +0000
commit86587527f52db8320f8d8ea48dfc76d3d93d79c8 (patch)
treec823b7c0d71d0f68ce087a1ab0fcf35c2b8560d6 /firmware
parentb39dadf7f206695fa23ca7b6f305148a22b760c0 (diff)
downloadrockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.tar.gz
rockbox-86587527f52db8320f8d8ea48dfc76d3d93d79c8.zip
Added caption backlight: Turns on backlight briefly at the start and end of each track.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3585 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/backlight.c4
-rw-r--r--firmware/export/backlight.h1
2 files changed, 3 insertions, 2 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 0974005136..887e5943f1 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -41,7 +41,7 @@ static bool backlight_on_when_charging = 0;
41static int backlight_timer; 41static int backlight_timer;
42static int backlight_timeout = 5; 42static int backlight_timeout = 5;
43 43
44static char timeout_value[19] = 44const char backlight_timeout_value[19] =
45{ 45{
46 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90 46 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 20, 25, 30, 45, 60, 90
47}; 47};
@@ -63,7 +63,7 @@ void backlight_thread(void)
63 } 63 }
64 else 64 else
65 { 65 {
66 backlight_timer = HZ*timeout_value[backlight_timeout]; 66 backlight_timer = HZ*backlight_timeout_value[backlight_timeout];
67 } 67 }
68 68
69 if(backlight_timer < 0) 69 if(backlight_timer < 0)
diff --git a/firmware/export/backlight.h b/firmware/export/backlight.h
index 09efc45060..d0bfc62e2e 100644
--- a/firmware/export/backlight.h
+++ b/firmware/export/backlight.h
@@ -27,5 +27,6 @@ int backlight_get_timeout(void);
27void backlight_set_timeout(int seconds); 27void backlight_set_timeout(int seconds);
28bool backlight_get_on_when_charging(void); 28bool backlight_get_on_when_charging(void);
29void backlight_set_on_when_charging(bool yesno); 29void backlight_set_on_when_charging(bool yesno);
30extern const char backlight_timeout_value[];
30 31
31#endif 32#endif