diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-18 17:40:32 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-18 17:40:32 +0000 |
commit | 73b3f5417fb53579600b2645cfc227f614793f4f (patch) | |
tree | d134af3691c7b7ed69635ed5816d4d3a7882062d | |
parent | 69845703bdc3af2aadbd9f3067b189e512c783a0 (diff) | |
download | rockbox-73b3f5417fb53579600b2645cfc227f614793f4f.tar.gz rockbox-73b3f5417fb53579600b2645cfc227f614793f4f.zip |
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
-rw-r--r-- | firmware/export/config-clip.h | 1 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-clip/backlight-clip.c | 23 |
2 files changed, 0 insertions, 24 deletions
diff --git a/firmware/export/config-clip.h b/firmware/export/config-clip.h index b05d2c5091..7fb6c41fba 100644 --- a/firmware/export/config-clip.h +++ b/firmware/export/config-clip.h @@ -104,7 +104,6 @@ /* Define this for LCD backlight available */ #define HAVE_BACKLIGHT -//#define HAVE_BACKLIGHT_BRIGHTNESS /* TODO */ /* define this if you have a flash memory storage */ #define HAVE_FLASH_STORAGE diff --git a/firmware/target/arm/as3525/sansa-clip/backlight-clip.c b/firmware/target/arm/as3525/sansa-clip/backlight-clip.c index 2064f0992f..d22b04b34e 100644 --- a/firmware/target/arm/as3525/sansa-clip/backlight-clip.c +++ b/firmware/target/arm/as3525/sansa-clip/backlight-clip.c @@ -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 */ } |