1
0
Fork 0
forked from len0rd/rockbox

Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-11-21 23:55:39 +00:00
parent e68680ac31
commit b51f7dfc9b
29 changed files with 416 additions and 231 deletions

View file

@ -448,7 +448,7 @@ static int runcurrent(void)
current = CURRENT_USB;
}
#ifndef BOOTLOADER
#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER)
if ((backlight_get_timeout() == 1) /* LED always on */
#ifdef HAVE_CHARGE_CTRL
|| (charger_inserted() && backlight_get_on_when_charging())
@ -915,13 +915,11 @@ void shutdown_hw(void)
#elif HAVE_TLV320
tlv320_close();
#endif
#if CONFIG_KEYPAD == ONDIO_PAD
backlight_off();
sleep(1);
lcd_set_contrast(0);
#endif
#ifdef HAVE_REMOTE_LCD
lcd_remote_backlight_off();
remote_backlight_off();
lcd_remote_set_contrast(0);
#endif
power_off();
#endif /* #ifndef SIMULATOR */