From e66ad3e8a86a19b9ef9480bc52766e61955f341d Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Tue, 30 Aug 2011 19:13:44 +0000 Subject: [PATCH] sansa clipzip: implement backlight git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30390 a1c6a512-1295-4272-9138-f99709370657 --- .../arm/as3525/sansa-clipzip/backlight-clipzip.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c index 541595d46a..1fae4b3007 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c @@ -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); }