Sansa Clip: backlight brightness is not possible, so remove references to it

We don't need to mess with CCU_IO register (it's only needed for targets
with a SD slot) so don't keep its value when changing buttonlight

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19139 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2008-11-18 17:40:32 +00:00
parent 69845703bd
commit 73b3f5417f
2 changed files with 0 additions and 24 deletions

View file

@ -22,37 +22,14 @@
#include "backlight-target.h"
#include "as3525.h"
/* TODO : backlight brightness */
/* XXX : xpd is used for SD/MCI interface
* If interrupts are used to access this interface, they should be
* disabled in _buttonlight_on/off ()
*/
void _buttonlight_on(void)
{
int saved_ccu_io;
saved_ccu_io = CCU_IO; /* save XPD setting */
CCU_IO &= ~(3<<2); /* setup xpd as GPIO */
GPIOD_DIR |= (1<<7);
GPIOD_PIN(7) = (1<<7); /* set pin d7 high */
CCU_IO = saved_ccu_io; /* restore the previous XPD setting */
}
void _buttonlight_off(void)
{
int saved_ccu_io;
saved_ccu_io = CCU_IO; /* save XPD setting */
CCU_IO &= ~(3<<2); /* setup xpd as GPIO */
GPIOD_DIR |= (1<<7);
GPIOD_PIN(7) = 0; /* set pin d7 low */
CCU_IO = saved_ccu_io; /* restore the previous XPD setting */
}