diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c b/firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c index f036792fc0..858e9aed49 100644 --- a/firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c +++ b/firmware/target/arm/as3525/sansa-c200v2/backlight-c200v2.c | |||
@@ -26,8 +26,12 @@ | |||
26 | #include "ascodec-target.h" | 26 | #include "ascodec-target.h" |
27 | #include "as3514.h" | 27 | #include "as3514.h" |
28 | 28 | ||
29 | /* TODO: This file is copy & pasted from backlight-e200v2-fuze.c, as I think | 29 | bool _backlight_init(void) |
30 | * it'll be the same for c200v2; prove it */ | 30 | { |
31 | GPIOA_DIR |= 1<<5; | ||
32 | return true; | ||
33 | } | ||
34 | |||
31 | void _backlight_set_brightness(int brightness) | 35 | void _backlight_set_brightness(int brightness) |
32 | { | 36 | { |
33 | if (brightness > 0) | 37 | if (brightness > 0) |
@@ -41,12 +45,12 @@ void _backlight_on(void) | |||
41 | #ifdef HAVE_LCD_ENABLE | 45 | #ifdef HAVE_LCD_ENABLE |
42 | lcd_enable(true); /* power on lcd + visible display */ | 46 | lcd_enable(true); /* power on lcd + visible display */ |
43 | #endif | 47 | #endif |
44 | ascodec_write(AS3514_DCDC15, backlight_brightness); | 48 | GPIOA_PIN(5) = 1<<5; |
45 | } | 49 | } |
46 | 50 | ||
47 | void _backlight_off(void) | 51 | void _backlight_off(void) |
48 | { | 52 | { |
49 | ascodec_write(AS3514_DCDC15, 0x0); | 53 | GPIOA_PIN(5) = 0; |
50 | #ifdef HAVE_LCD_ENABLE | 54 | #ifdef HAVE_LCD_ENABLE |
51 | lcd_enable(false); /* power off visible display */ | 55 | lcd_enable(false); /* power off visible display */ |
52 | #endif | 56 | #endif |