mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
as3525v2: factorize writing to ascodec PMU
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25380 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1bfffbcaaa
commit
ba76e2870e
4 changed files with 18 additions and 18 deletions
|
|
@ -27,8 +27,7 @@
|
|||
void _backlight_on(void)
|
||||
{
|
||||
ascodec_write(0x25, ascodec_read(0x25) | 2); /* lcd power */
|
||||
ascodec_write(AS3543_PMU_ENABLE, 8|1);
|
||||
ascodec_write(AS3543_BACKLIGHT, 0x90);
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
|
||||
lcd_enable(true);
|
||||
}
|
||||
|
||||
|
|
@ -36,6 +35,5 @@ void _backlight_off(void)
|
|||
{
|
||||
lcd_enable(false);
|
||||
ascodec_write(0x25, ascodec_read(0x25) & ~2); /* lcd power */
|
||||
ascodec_write(AS3543_PMU_ENABLE, 8|1);
|
||||
ascodec_write(AS3543_BACKLIGHT, 0x00);
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x00);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue