summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iaudio/m5/backlight-m5.c
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/coldfire/iaudio/m5/backlight-m5.c
parent8537cbf091634efa57768dccff39049afdf6d288 (diff)
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/coldfire/iaudio/m5/backlight-m5.c')
-rw-r--r--firmware/target/coldfire/iaudio/m5/backlight-m5.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/coldfire/iaudio/m5/backlight-m5.c b/firmware/target/coldfire/iaudio/m5/backlight-m5.c
index 63bc5bc30e..19bc5bfcae 100644
--- a/firmware/target/coldfire/iaudio/m5/backlight-m5.c
+++ b/firmware/target/coldfire/iaudio/m5/backlight-m5.c
@@ -24,14 +24,14 @@
#include "pcf50606.h"
#include "lcd.h"
-bool __backlight_init(void)
+bool _backlight_init(void)
{
- __backlight_on();
+ _backlight_on();
return true; /* Backlight always ON after boot. */
}
-void __backlight_on(void)
+void _backlight_on(void)
{
int level = set_irq_level(HIGHEST_IRQ_LEVEL);
@@ -39,7 +39,7 @@ void __backlight_on(void)
set_irq_level(level);
}
-void __backlight_off(void)
+void _backlight_off(void)
{
int level = set_irq_level(HIGHEST_IRQ_LEVEL);
@@ -47,12 +47,12 @@ void __backlight_off(void)
set_irq_level(level);
}
-void __remote_backlight_on(void)
+void _remote_backlight_on(void)
{
and_l(~0x00200000, &GPIO_OUT);
}
-void __remote_backlight_off(void)
+void _remote_backlight_off(void)
{
or_l(0x00200000, &GPIO_OUT);
}