sansa clipzip: implement backlight
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30390 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
99f260ef49
commit
e66ad3e8a8
1 changed files with 10 additions and 2 deletions
|
@ -32,11 +32,19 @@ void _backlight_init()
|
|||
|
||||
void _backlight_on(void)
|
||||
{
|
||||
/* TODO */
|
||||
GPIOB_PIN(1) = (1 << 1);
|
||||
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
|
||||
sleep(1);
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
|
||||
sleep(1);
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
{
|
||||
/* TODO */
|
||||
GPIOB_PIN(1) = 0;
|
||||
|
||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue