From 8007828d7197c8c679a4dc1fb23689241f5264e8 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 24 Jun 2002 13:50:39 +0000 Subject: Added backlight control git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1154 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/button.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3