summaryrefslogtreecommitdiffstats
path: root/bootloader
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 /bootloader
parent8537cbf091634efa57768dccff39049afdf6d288 (diff)
downloadrockbox-ef12b3b5c678e4fa44d60061b0c1bc312e589ba1.tar.gz
rockbox-ef12b3b5c678e4fa44d60061b0c1bc312e589ba1.tar.bz2
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 'bootloader')
-rw-r--r--bootloader/iaudio_x5.c4
-rw-r--r--bootloader/ipod.c2
-rw-r--r--bootloader/iriver_h300.c10
-rw-r--r--bootloader/main-e200r-installer.c2
-rw-r--r--bootloader/main-pp.c2
-rw-r--r--bootloader/main.c12
-rw-r--r--bootloader/telechips.c2
7 files changed, 17 insertions, 17 deletions
diff --git a/bootloader/iaudio_x5.c b/bootloader/iaudio_x5.c
index d6ee7176ca..3cfbb7aec7 100644
--- a/bootloader/iaudio_x5.c
+++ b/bootloader/iaudio_x5.c
@@ -93,9 +93,9 @@ void shutdown(void)
sleep(HZ*2);
/* Backlight OFF */
- __backlight_off();
+ _backlight_off();
#ifdef HAVE_REMOTE_LCD
- __remote_backlight_off();
+ _remote_backlight_off();
#endif
__reset_cookie();
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index 441bda860c..816f13adde 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -239,7 +239,7 @@ void* main(void)
#ifndef HAVE_BACKLIGHT_INVERSION
/* Turn on the backlight */
- __backlight_on();
+ _backlight_on();
#endif
system_init();
diff --git a/bootloader/iriver_h300.c b/bootloader/iriver_h300.c
index a3a15bd4b5..5b742044eb 100644
--- a/bootloader/iriver_h300.c
+++ b/bootloader/iriver_h300.c
@@ -100,8 +100,8 @@ void shutdown(void)
sleep(HZ*2);
- __backlight_off();
- __remote_backlight_off();
+ _backlight_off();
+ _remote_backlight_off();
__reset_cookie();
power_off();
@@ -177,10 +177,10 @@ void main(void)
audiohw_reset();
/* Start with the main backlight OFF. */
- __backlight_init();
- __backlight_off();
+ _backlight_init();
+ _backlight_off();
- __remote_backlight_on();
+ _remote_backlight_on();
system_init();
kernel_init();
diff --git a/bootloader/main-e200r-installer.c b/bootloader/main-e200r-installer.c
index b128a3445a..46c1f9a2ff 100644
--- a/bootloader/main-e200r-installer.c
+++ b/bootloader/main-e200r-installer.c
@@ -102,7 +102,7 @@ void* main(void)
font_init();
button_init();
i2c_init();
- __backlight_on();
+ _backlight_on();
lcd_set_foreground(LCD_WHITE);
lcd_set_background(LCD_BLACK);
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index acc916e8a4..3c498d9ee1 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -441,7 +441,7 @@ void* main(void)
button_init();
#if defined(SANSA_E200)
i2c_init();
- __backlight_on();
+ _backlight_on();
#endif
lcd_set_foreground(LCD_WHITE);
diff --git a/bootloader/main.c b/bootloader/main.c
index e60799fa65..8d58ca71d0 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -156,9 +156,9 @@ void shutdown(void)
sleep(HZ*2);
/* Backlight OFF */
- __backlight_off();
+ _backlight_off();
#ifdef HAVE_REMOTE_LCD
- __remote_backlight_off();
+ _remote_backlight_off();
#endif
__reset_cookie();
@@ -395,12 +395,12 @@ void main(void)
}
/* Start with the main backlight OFF. */
- __backlight_init();
- __backlight_off();
+ _backlight_init();
+ _backlight_off();
/* Remote backlight ON */
#ifdef HAVE_REMOTE_LCD
- __remote_backlight_on();
+ _remote_backlight_on();
#endif
system_init();
@@ -531,7 +531,7 @@ void main(void)
sleep(HZ);
/* Backlight OFF */
- __backlight_off();
+ _backlight_off();
}
cpu_idle_mode(false);
diff --git a/bootloader/telechips.c b/bootloader/telechips.c
index 83dad704da..6093701044 100644
--- a/bootloader/telechips.c
+++ b/bootloader/telechips.c
@@ -57,7 +57,7 @@ void* main(void)
lcd_init();
font_init();
- __backlight_on();
+ _backlight_on();
while(!do_power_off) {
line = 0;