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 /bootloader/main.c | |
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 'bootloader/main.c')
-rw-r--r-- | bootloader/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) | |||
156 | sleep(HZ*2); | 156 | sleep(HZ*2); |
157 | 157 | ||
158 | /* Backlight OFF */ | 158 | /* Backlight OFF */ |
159 | __backlight_off(); | 159 | _backlight_off(); |
160 | #ifdef HAVE_REMOTE_LCD | 160 | #ifdef HAVE_REMOTE_LCD |
161 | __remote_backlight_off(); | 161 | _remote_backlight_off(); |
162 | #endif | 162 | #endif |
163 | 163 | ||
164 | __reset_cookie(); | 164 | __reset_cookie(); |
@@ -395,12 +395,12 @@ void main(void) | |||
395 | } | 395 | } |
396 | 396 | ||
397 | /* Start with the main backlight OFF. */ | 397 | /* Start with the main backlight OFF. */ |
398 | __backlight_init(); | 398 | _backlight_init(); |
399 | __backlight_off(); | 399 | _backlight_off(); |
400 | 400 | ||
401 | /* Remote backlight ON */ | 401 | /* Remote backlight ON */ |
402 | #ifdef HAVE_REMOTE_LCD | 402 | #ifdef HAVE_REMOTE_LCD |
403 | __remote_backlight_on(); | 403 | _remote_backlight_on(); |
404 | #endif | 404 | #endif |
405 | 405 | ||
406 | system_init(); | 406 | system_init(); |
@@ -531,7 +531,7 @@ void main(void) | |||
531 | sleep(HZ); | 531 | sleep(HZ); |
532 | 532 | ||
533 | /* Backlight OFF */ | 533 | /* Backlight OFF */ |
534 | __backlight_off(); | 534 | _backlight_off(); |
535 | } | 535 | } |
536 | 536 | ||
537 | cpu_idle_mode(false); | 537 | cpu_idle_mode(false); |