diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-24 13:50:39 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2002-06-24 13:50:39 +0000 |
commit | 8007828d7197c8c679a4dc1fb23689241f5264e8 (patch) | |
tree | d4917950daa1d2dd8ec01bdfc677ebb04d047450 /firmware/drivers | |
parent | ef444001df8c063a25d743f3eb9d3db2d8da3ee8 (diff) |
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.c | 6 |
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 @@ #include "sh7034.h" #include "button.h" #include "kernel.h" +#include "backlight.h" static struct event_queue button_queue; @@ -66,7 +67,10 @@ static void button_tick(void) } } if ( post ) + { queue_post(&button_queue, btn, NULL); + backlight_on(); + } } else { repeat = false; @@ -76,6 +80,8 @@ static void button_tick(void) lastbtn = btn; tick = 0; } + + backlight_tick(); } int button_get(bool block) |