diff options
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c index 9fde68dd8a..925db3a34d 100644 --- a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c +++ b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | |||
@@ -29,13 +29,16 @@ | |||
29 | 29 | ||
30 | bool backlight_hw_init() | 30 | bool backlight_hw_init() |
31 | { | 31 | { |
32 | /* GPIO B1 controls backlight */ | ||
33 | GPIOB_DIR |= (1 << 1); | ||
34 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); | ||
35 | GPIOB_PIN(1) = (1 << 1); | ||
36 | |||
32 | return true; | 37 | return true; |
33 | } | 38 | } |
34 | 39 | ||
35 | void backlight_hw_on(void) | 40 | void backlight_hw_on(void) |
36 | { | 41 | { |
37 | /* GPIO B1 controls backlight */ | ||
38 | GPIOB_DIR |= (1 << 1); | ||
39 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); | 42 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); |
40 | GPIOB_PIN(1) = (1 << 1); | 43 | GPIOB_PIN(1) = (1 << 1); |
41 | #ifdef HAVE_LCD_ENABLE | 44 | #ifdef HAVE_LCD_ENABLE |
@@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness) | |||
56 | { | 59 | { |
57 | oled_brightness(brightness); | 60 | oled_brightness(brightness); |
58 | } | 61 | } |
59 | |||