forked from len0rd/rockbox
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
This commit is contained in:
parent
8537cbf091
commit
ef12b3b5c6
47 changed files with 530 additions and 358 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue