mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
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:
parent
69845703bd
commit
73b3f5417f
2 changed files with 0 additions and 24 deletions
|
|
@ -104,7 +104,6 @@
|
||||||
|
|
||||||
/* Define this for LCD backlight available */
|
/* Define this for LCD backlight available */
|
||||||
#define HAVE_BACKLIGHT
|
#define HAVE_BACKLIGHT
|
||||||
//#define HAVE_BACKLIGHT_BRIGHTNESS /* TODO */
|
|
||||||
|
|
||||||
/* define this if you have a flash memory storage */
|
/* define this if you have a flash memory storage */
|
||||||
#define HAVE_FLASH_STORAGE
|
#define HAVE_FLASH_STORAGE
|
||||||
|
|
|
||||||
|
|
@ -22,37 +22,14 @@
|
||||||
#include "backlight-target.h"
|
#include "backlight-target.h"
|
||||||
#include "as3525.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)
|
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_DIR |= (1<<7);
|
||||||
GPIOD_PIN(7) = (1<<7); /* set pin d7 high */
|
GPIOD_PIN(7) = (1<<7); /* set pin d7 high */
|
||||||
|
|
||||||
CCU_IO = saved_ccu_io; /* restore the previous XPD setting */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _buttonlight_off(void)
|
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_DIR |= (1<<7);
|
||||||
GPIOD_PIN(7) = 0; /* set pin d7 low */
|
GPIOD_PIN(7) = 0; /* set pin d7 low */
|
||||||
|
|
||||||
CCU_IO = saved_ccu_io; /* restore the previous XPD setting */
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue