diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-26 13:38:31 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2006-07-26 13:38:31 +0000 |
commit | 40a3fd6938962a13b4f73c77b2058942c2a9c701 (patch) | |
tree | d51d4f8b159591aecbd6030b21bc0968fb40e64c /firmware/target/coldfire/iaudio/x5/backlight-x5.c | |
parent | b98b895bab8c63c889f47a70b341d1ddfc585da9 (diff) | |
download | rockbox-40a3fd6938962a13b4f73c77b2058942c2a9c701.tar.gz rockbox-40a3fd6938962a13b4f73c77b2058942c2a9c701.zip |
Remote LCD communication driver for X5, very loosely based on patch FS#5634 by Rani Hod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10331 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iaudio/x5/backlight-x5.c')
-rwxr-xr-x | firmware/target/coldfire/iaudio/x5/backlight-x5.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/coldfire/iaudio/x5/backlight-x5.c b/firmware/target/coldfire/iaudio/x5/backlight-x5.c index 2b09d14b55..91c7224267 100755 --- a/firmware/target/coldfire/iaudio/x5/backlight-x5.c +++ b/firmware/target/coldfire/iaudio/x5/backlight-x5.c | |||
@@ -35,3 +35,13 @@ void __backlight_off(void) | |||
35 | pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */ | 35 | pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */ |
36 | set_irq_level(level); | 36 | set_irq_level(level); |
37 | } | 37 | } |
38 | |||
39 | void __remote_backlight_on(void) | ||
40 | { | ||
41 | and_l(~0x00200000, &GPIO_OUT); | ||
42 | } | ||
43 | |||
44 | void __remote_backlight_off(void) | ||
45 | { | ||
46 | or_l(0x00200000, &GPIO_OUT); | ||
47 | } | ||