summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/3g/backlight-3g.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-04-04 17:33:39 +0000
committerJens Arnold <amiconn@rockbox.org>2008-04-04 17:33:39 +0000
commit8399749412ffd3487832f1eb3a16ea18fc8f5702 (patch)
treedee9dd02ea0f41af6600e5edcfbae92727e65ef3 /firmware/target/arm/ipod/3g/backlight-3g.c
parentaa9dbfef190d1789213ba51b9683cfddfd2c0417 (diff)
downloadrockbox-8399749412ffd3487832f1eb3a16ea18fc8f5702.tar.gz
rockbox-8399749412ffd3487832f1eb3a16ea18fc8f5702.zip
1st/2nd Gen: Backlight inversion needs to be protected from interrupts, because it can happen any time, even while the greyscale lib or something else is writing to the LCD from an ISR. Also make backlight inversion only hit the LCD if necessary. * Use register definition in the 1st..3rd Gen backlight drivers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16962 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod/3g/backlight-3g.c')
-rw-r--r--firmware/target/arm/ipod/3g/backlight-3g.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ipod/3g/backlight-3g.c b/firmware/target/arm/ipod/3g/backlight-3g.c
index 41f8ba37cb..573b6c67c0 100644
--- a/firmware/target/arm/ipod/3g/backlight-3g.c
+++ b/firmware/target/arm/ipod/3g/backlight-3g.c
@@ -22,10 +22,10 @@
22 22
23void _backlight_on(void) 23void _backlight_on(void)
24{ 24{
25 outl(inl(0xc0001000) | 0x02, 0xc0001000); 25 LCD1_CONTROL |= 0x02;
26} 26}
27 27
28void _backlight_off(void) 28void _backlight_off(void)
29{ 29{
30 outl(inl(0xc0001000) & ~0x02, 0xc0001000); 30 LCD1_CONTROL &= ~0x02;
31} 31}