diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-11-12 18:49:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-11-12 18:49:53 +0000 |
commit | ef12b3b5c678e4fa44d60061b0c1bc312e589ba1 (patch) | |
tree | 4c2572d7bf3d995be16b33fa2e46ccccad34f4ee /firmware/target/sh/archos/fm_v2 | |
parent | 8537cbf091634efa57768dccff39049afdf6d288 (diff) | |
download | rockbox-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/sh/archos/fm_v2')
-rw-r--r-- | firmware/target/sh/archos/fm_v2/backlight-target.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/sh/archos/fm_v2/backlight-target.h b/firmware/target/sh/archos/fm_v2/backlight-target.h index 834d10bdc6..693e2c8200 100644 --- a/firmware/target/sh/archos/fm_v2/backlight-target.h +++ b/firmware/target/sh/archos/fm_v2/backlight-target.h | |||
@@ -22,15 +22,15 @@ | |||
22 | #include "config.h" | 22 | #include "config.h" |
23 | #include "rtc.h" | 23 | #include "rtc.h" |
24 | 24 | ||
25 | #define __backlight_init() true | 25 | #define _backlight_init() true |
26 | 26 | ||
27 | static inline void __backlight_on(void) | 27 | static inline void _backlight_on(void) |
28 | { | 28 | { |
29 | /* Enable square wave */ | 29 | /* Enable square wave */ |
30 | rtc_write(0x0a, rtc_read(0x0a) | 0x40); | 30 | rtc_write(0x0a, rtc_read(0x0a) | 0x40); |
31 | } | 31 | } |
32 | 32 | ||
33 | static inline void __backlight_off(void) | 33 | static inline void _backlight_off(void) |
34 | { | 34 | { |
35 | /* Disable square wave */ | 35 | /* Disable square wave */ |
36 | rtc_write(0x0a, rtc_read(0x0a) & ~0x40); | 36 | rtc_write(0x0a, rtc_read(0x0a) & ~0x40); |