diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c index fd44d76cac..a47941bbd7 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | |||
@@ -29,16 +29,14 @@ | |||
29 | 29 | ||
30 | bool _backlight_init() | 30 | bool _backlight_init() |
31 | { | 31 | { |
32 | /* GPIO B1 controls backlight */ | ||
33 | GPIOB_DIR |= (1 << 1); | ||
34 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x91); | ||
35 | GPIOB_PIN(1) = (1 << 1); | ||
36 | |||
37 | return true; | 32 | return true; |
38 | } | 33 | } |
39 | 34 | ||
40 | void _backlight_on(void) | 35 | void _backlight_on(void) |
41 | { | 36 | { |
37 | /* GPIO B1 controls backlight */ | ||
38 | GPIOB_DIR |= (1 << 1); | ||
39 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); | ||
42 | GPIOB_PIN(1) = (1 << 1); | 40 | GPIOB_PIN(1) = (1 << 1); |
43 | #ifdef HAVE_LCD_ENABLE | 41 | #ifdef HAVE_LCD_ENABLE |
44 | lcd_enable(true); | 42 | lcd_enable(true); |
@@ -50,6 +48,7 @@ void _backlight_off(void) | |||
50 | #ifdef HAVE_LCD_ENABLE | 48 | #ifdef HAVE_LCD_ENABLE |
51 | lcd_enable(false); | 49 | lcd_enable(false); |
52 | #endif | 50 | #endif |
51 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0); | ||
53 | GPIOB_PIN(1) = 0; | 52 | GPIOB_PIN(1) = 0; |
54 | } | 53 | } |
55 | 54 | ||