HDD1630: a proper way to enable and disable backlight.
Change-Id: Ic08a8a3ec4bcd6320ba07cb9bda1c95257ef14c9
This commit is contained in:
parent
feff021173
commit
b25cd9792f
1 changed files with 4 additions and 4 deletions
|
@ -36,14 +36,14 @@ void _backlight_set_brightness(int brightness)
|
|||
|
||||
void _backlight_on(void)
|
||||
{
|
||||
GPO32_VAL &= ~0x1000000;
|
||||
GPO32_ENABLE &= ~0x1000000;
|
||||
GPO32_ENABLE |= 0x400;
|
||||
GPO32_VAL |= 0x400;
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
{
|
||||
GPO32_VAL |= 0x1000000;
|
||||
GPO32_ENABLE |= 0x1000000;
|
||||
GPO32_ENABLE |= 0x400;
|
||||
GPO32_VAL &=~0x400;
|
||||
}
|
||||
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
|
|
Loading…
Reference in a new issue