mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
HDD6330: Patch to enable/disable backlight.
Flyspray FS#11462 Author: David Fowle git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28307 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
057806f67a
commit
b88efd11c2
2 changed files with 11 additions and 0 deletions
|
@ -561,6 +561,7 @@ Wojciech Lesniak
|
||||||
Tuomas Airaksinen
|
Tuomas Airaksinen
|
||||||
Calvin Walden
|
Calvin Walden
|
||||||
Michael Gentry
|
Michael Gentry
|
||||||
|
David Fowle
|
||||||
|
|
||||||
The libmad team
|
The libmad team
|
||||||
The wavpack team
|
The wavpack team
|
||||||
|
|
|
@ -36,14 +36,24 @@ void _backlight_set_brightness(int brightness)
|
||||||
|
|
||||||
void _backlight_on(void)
|
void _backlight_on(void)
|
||||||
{
|
{
|
||||||
|
#if defined(PHILIPS_HDD6330)
|
||||||
|
GPO32_ENABLE |= 0x400;
|
||||||
|
GPO32_VAL |= 0x400;
|
||||||
|
#else
|
||||||
GPO32_VAL &= ~0x1000000;
|
GPO32_VAL &= ~0x1000000;
|
||||||
GPO32_ENABLE &= ~0x1000000;
|
GPO32_ENABLE &= ~0x1000000;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void _backlight_off(void)
|
void _backlight_off(void)
|
||||||
{
|
{
|
||||||
|
#if defined(PHILIPS_HDD6330)
|
||||||
|
GPO32_ENABLE |= 0x400;
|
||||||
|
GPO32_VAL &= ~0x400;
|
||||||
|
#else
|
||||||
GPO32_VAL |= 0x1000000;
|
GPO32_VAL |= 0x1000000;
|
||||||
GPO32_ENABLE |= 0x1000000;
|
GPO32_ENABLE |= 0x1000000;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_BUTTON_LIGHT
|
#ifdef HAVE_BUTTON_LIGHT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue