sansa clipzip: implement backlight

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30390 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Bertrik Sikken 2011-08-30 19:13:44 +00:00
parent 99f260ef49
commit e66ad3e8a8

View file

@ -32,11 +32,19 @@ void _backlight_init()
void _backlight_on(void) 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) void _backlight_off(void)
{ {
/* TODO */ GPIOB_PIN(1) = 0;
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91);
} }