mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
Onda VX747/VX777: centralise LCD clock en-/disabling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24168 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4fdf4ad728
commit
d3bbe51629
3 changed files with 29 additions and 8 deletions
|
|
@ -197,6 +197,8 @@ static void _set_lcd_clock(void)
|
|||
|
||||
void lcd_init_controller(void)
|
||||
{
|
||||
lcd_clock_enable();
|
||||
|
||||
#ifdef USB_BOOT
|
||||
_display_pin_init();
|
||||
#endif
|
||||
|
|
@ -204,6 +206,8 @@ void lcd_init_controller(void)
|
|||
_set_lcd_clock();
|
||||
SLEEP(1000);
|
||||
_display_init();
|
||||
|
||||
lcd_clock_disable();
|
||||
}
|
||||
|
||||
void lcd_set_target(int x, int y, int width, int height)
|
||||
|
|
@ -254,12 +258,20 @@ void lcd_set_flip(bool yesno)
|
|||
|
||||
void lcd_on(void)
|
||||
{
|
||||
lcd_clock_enable();
|
||||
|
||||
_display_on();
|
||||
|
||||
lcd_clock_disable();
|
||||
}
|
||||
|
||||
void lcd_off(void)
|
||||
{
|
||||
lcd_clock_enable();
|
||||
|
||||
_display_off();
|
||||
|
||||
lcd_clock_disable();
|
||||
}
|
||||
|
||||
void lcd_set_contrast(int val)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue