summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc77x/logikdax
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-11-12 18:49:53 +0000
committerJens Arnold <amiconn@rockbox.org>2007-11-12 18:49:53 +0000
commitef12b3b5c678e4fa44d60061b0c1bc312e589ba1 (patch)
tree4c2572d7bf3d995be16b33fa2e46ccccad34f4ee /firmware/target/arm/tcc77x/logikdax
parent8537cbf091634efa57768dccff39049afdf6d288 (diff)
downloadrockbox-ef12b3b5c678e4fa44d60061b0c1bc312e589ba1.tar.gz
rockbox-ef12b3b5c678e4fa44d60061b0c1bc312e589ba1.zip
Hardware controlled backlight brightness for iPod Video and Nano, retaining the software PWM fade in/ fade out. * Backlight handling cleanup, getting rid of one layer of 'lowlevelness'. * Use atomic GPIO bit manipulation for PP502x backlight handling.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15599 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc77x/logikdax')
-rw-r--r--firmware/target/arm/tcc77x/logikdax/backlight-target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/tcc77x/logikdax/backlight-target.h b/firmware/target/arm/tcc77x/logikdax/backlight-target.h
index 4714f22aa3..5a64fcf0bc 100644
--- a/firmware/target/arm/tcc77x/logikdax/backlight-target.h
+++ b/firmware/target/arm/tcc77x/logikdax/backlight-target.h
@@ -21,15 +21,15 @@
21 21
22#include "tcc77x.h" 22#include "tcc77x.h"
23 23
24#define __backlight_init() true 24#define _backlight_init() true
25 25
26static inline void __backlight_on(void) 26static inline void _backlight_on(void)
27{ 27{
28 /* Enable backlight */ 28 /* Enable backlight */
29 GPIOD |= 0x10; 29 GPIOD |= 0x10;
30} 30}
31 31
32static inline void __backlight_off(void) 32static inline void _backlight_off(void)
33{ 33{
34 /* Disable backlight */ 34 /* Disable backlight */
35 GPIOD &= ~0x10; 35 GPIOD &= ~0x10;