diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-08-30 19:13:44 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-08-30 19:13:44 +0000 |
commit | e66ad3e8a86a19b9ef9480bc52766e61955f341d (patch) | |
tree | 2f371fd9ce58cf64d55b45eabf57cb2eb5e6e66a | |
parent | 99f260ef4970a756c3ddc3e3f9cd108bb78d65e9 (diff) | |
download | rockbox-e66ad3e8a86a19b9ef9480bc52766e61955f341d.tar.gz rockbox-e66ad3e8a86a19b9ef9480bc52766e61955f341d.zip |
sansa clipzip: implement backlight
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30390 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | 12 |
1 files 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() | |||
32 | 32 | ||
33 | void _backlight_on(void) | 33 | void _backlight_on(void) |
34 | { | 34 | { |
35 | /* TODO */ | 35 | GPIOB_PIN(1) = (1 << 1); |
36 | |||
37 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91); | ||
38 | sleep(1); | ||
39 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91); | ||
40 | sleep(1); | ||
41 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91); | ||
36 | } | 42 | } |
37 | 43 | ||
38 | void _backlight_off(void) | 44 | void _backlight_off(void) |
39 | { | 45 | { |
40 | /* TODO */ | 46 | GPIOB_PIN(1) = 0; |
47 | |||
48 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91); | ||
41 | } | 49 | } |
42 | 50 | ||