diff options
author | Szymon Dziok <b0hoon@o2.pl> | 2014-01-13 23:04:21 +0100 |
---|---|---|
committer | Szymon Dziok <b0hoon@o2.pl> | 2014-01-13 23:04:21 +0100 |
commit | b25cd9792fe3f0f2299560412111607da3baea18 (patch) | |
tree | 621628560e35f12ecb7cd0be5fed7cad1e979af8 | |
parent | feff02117386bf5d670dc14bcace7d872cbd6a2c (diff) | |
download | rockbox-b25cd9792fe3f0f2299560412111607da3baea18.tar.gz rockbox-b25cd9792fe3f0f2299560412111607da3baea18.zip |
HDD1630: a proper way to enable and disable backlight.
Change-Id: Ic08a8a3ec4bcd6320ba07cb9bda1c95257ef14c9
-rw-r--r-- | firmware/target/arm/philips/hdd1630/backlight-hdd1630.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c index 47a5d1c47a..00f38bb0f4 100644 --- a/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c +++ b/firmware/target/arm/philips/hdd1630/backlight-hdd1630.c | |||
@@ -36,14 +36,14 @@ void _backlight_set_brightness(int brightness) | |||
36 | 36 | ||
37 | void _backlight_on(void) | 37 | void _backlight_on(void) |
38 | { | 38 | { |
39 | GPO32_VAL &= ~0x1000000; | 39 | GPO32_ENABLE |= 0x400; |
40 | GPO32_ENABLE &= ~0x1000000; | 40 | GPO32_VAL |= 0x400; |
41 | } | 41 | } |
42 | 42 | ||
43 | void _backlight_off(void) | 43 | void _backlight_off(void) |
44 | { | 44 | { |
45 | GPO32_VAL |= 0x1000000; | 45 | GPO32_ENABLE |= 0x400; |
46 | GPO32_ENABLE |= 0x1000000; | 46 | GPO32_VAL &=~0x400; |
47 | } | 47 | } |
48 | 48 | ||
49 | #ifdef HAVE_BUTTON_LIGHT | 49 | #ifdef HAVE_BUTTON_LIGHT |