IRiver: added remote backlight handling into backlight thread
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6299 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
562c8727c8
commit
cf2b821a7a
1 changed files with 12 additions and 0 deletions
|
@ -28,6 +28,10 @@
|
|||
#include "power.h"
|
||||
#include "system.h"
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
#include "lcd-remote.h"
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_BACKLIGHT
|
||||
|
||||
const char backlight_timeout_value[19] =
|
||||
|
@ -63,6 +67,10 @@ static void __backlight_off(void)
|
|||
#elif CONFIG_BACKLIGHT == BL_GMINI
|
||||
P1 &= ~0x10;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
lcd_remote_backlight_off();
|
||||
#endif
|
||||
}
|
||||
|
||||
static void __backlight_on(void)
|
||||
|
@ -80,6 +88,10 @@ static void __backlight_on(void)
|
|||
#elif CONFIG_BACKLIGHT == BL_GMINI
|
||||
P1 |= 0x10;
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
lcd_remote_backlight_on();
|
||||
#endif
|
||||
}
|
||||
|
||||
void backlight_thread(void)
|
||||
|
|
Loading…
Reference in a new issue