diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-11-21 23:55:39 +0000 |
commit | b51f7dfc9b507ab9db12fe90b2ddad708f435e06 (patch) | |
tree | efcef3411689401da21795d700a0741f8ab1072b /firmware/drivers | |
parent | e68680ac310adb8373c9f3a5194466766d64cf37 (diff) |
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
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/button.c | 2 | ||||
-rw-r--r-- | firmware/drivers/lcd-h100-remote.c | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 918705eb4f..c764e1392f 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -181,8 +181,6 @@ static void button_tick(void) lastbtn = btn & ~(BUTTON_REL | BUTTON_REPEAT); tick = 0; } - - backlight_tick(); } long button_get(bool block) diff --git a/firmware/drivers/lcd-h100-remote.c b/firmware/drivers/lcd-h100-remote.c index 02a907dc89..05e7791cbb 100644 --- a/firmware/drivers/lcd-h100-remote.c +++ b/firmware/drivers/lcd-h100-remote.c @@ -122,24 +122,6 @@ static const char scroll_tick_table[16] = { /*** driver routines ***/ #ifndef SIMULATOR -void lcd_remote_backlight_on(void) -{ -#ifdef IRIVER_H300_SERIES - and_l(~0x00000002, &GPIO1_OUT); -#else - and_l(~0x00000800, &GPIO_OUT); -#endif -} - -void lcd_remote_backlight_off(void) -{ -#ifdef IRIVER_H300_SERIES - or_l(0x00000002, &GPIO1_OUT); -#else - or_l(0x00000800, &GPIO_OUT); -#endif -} - void lcd_remote_write_command(int cmd) { int i; |