summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-06-24 13:50:39 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-06-24 13:50:39 +0000
commit8007828d7197c8c679a4dc1fb23689241f5264e8 (patch)
treed4917950daa1d2dd8ec01bdfc677ebb04d047450 /firmware/drivers
parentef444001df8c063a25d743f3eb9d3db2d8da3ee8 (diff)
downloadrockbox-8007828d7197c8c679a4dc1fb23689241f5264e8.tar.gz
rockbox-8007828d7197c8c679a4dc1fb23689241f5264e8.zip
Added backlight control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1154 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 906d511f25..bd54dba523 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -25,6 +25,7 @@
25#include "sh7034.h" 25#include "sh7034.h"
26#include "button.h" 26#include "button.h"
27#include "kernel.h" 27#include "kernel.h"
28#include "backlight.h"
28 29
29static struct event_queue button_queue; 30static struct event_queue button_queue;
30 31
@@ -66,7 +67,10 @@ static void button_tick(void)
66 } 67 }
67 } 68 }
68 if ( post ) 69 if ( post )
70 {
69 queue_post(&button_queue, btn, NULL); 71 queue_post(&button_queue, btn, NULL);
72 backlight_on();
73 }
70 } 74 }
71 else { 75 else {
72 repeat = false; 76 repeat = false;
@@ -76,6 +80,8 @@ static void button_tick(void)
76 lastbtn = btn; 80 lastbtn = btn;
77 tick = 0; 81 tick = 0;
78 } 82 }
83
84 backlight_tick();
79} 85}
80 86
81int button_get(bool block) 87int button_get(bool block)