1
0
Fork 0
forked from len0rd/rockbox

Gigabeat S: Turn off backlight LED supply after a 2-second delay and save a little power. Hardware fading required keeping supply enabled during fade out. Let fade happen at poweroff (might as well~~~).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19322 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2008-12-04 04:16:53 +00:00
parent dcf28c277e
commit 1616e66e55
5 changed files with 58 additions and 13 deletions

View file

@ -25,6 +25,7 @@
#include "lcd.h"
#include "kernel.h"
#include "lcd-target.h"
#include "backlight-target.h"
#define LCDADDR(x, y) (&lcd_framebuffer[(y)][(x)])
@ -42,13 +43,6 @@ extern struct viewport* current_vp;
extern void lcd_copy_buffer_rect(fb_data *dst, const fb_data *src,
int width, int height);
#if 0
bool lcd_enabled()
{
return lcd_on;
}
#endif
/* LCD init */
void lcd_init_device(void)
{
@ -94,6 +88,14 @@ void lcd_update_rect(int x, int y, int width, int height)
}
}
#ifdef HAVE_LCD_SLEEP
void lcd_sleep(void)
{
_backlight_lcd_sleep();
}
#endif /* HAVE_LCD_SLEEP */
#if 0
void lcd_enable(bool state)
{
(void)state;
@ -103,6 +105,7 @@ bool lcd_enabled(void)
{
return true;
}
#endif
/* Update the display.
This must be called after all other LCD functions that change the display. */