mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Enable display and backlight on panic.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26917 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
be7e835d92
commit
68e2023184
9 changed files with 18 additions and 0 deletions
|
|
@ -27,6 +27,13 @@ bool _backlight_init(void);
|
|||
void _backlight_pwm(int on);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
|
||||
static inline void _backlight_panic_on(void)
|
||||
{
|
||||
_backlight_on();
|
||||
_backlight_pwm(1);
|
||||
}
|
||||
|
||||
void _backlight_set_brightness(int brightness);
|
||||
int __backlight_is_on(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ static inline void _backlight_off(void)
|
|||
lcd_enable(false);
|
||||
}
|
||||
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
|
||||
static inline bool _backlight_init(void)
|
||||
{
|
||||
GPIOD_DIR |= (1<<7); /* for button light */
|
||||
|
|
|
|||
|
|
@ -25,5 +25,6 @@
|
|||
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
|
||||
static inline bool _backlight_init(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#define _backlight_init() true
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
void _backlight_set_brightness(int brightness);
|
||||
int __backlight_is_on(void);
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
#define _backlight_init() true
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
void _backlight_set_brightness(int brightness);
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
void _buttonlight_on(void);
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
bool _backlight_init(void);
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
void _backlight_set_brightness(int brightness);
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
void _buttonlight_on(void);
|
||||
|
|
|
|||
|
|
@ -37,4 +37,6 @@ static inline void _backlight_off(void)
|
|||
GPIOD_PIN(1) = 0x00;
|
||||
}
|
||||
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -392,6 +392,8 @@ void system_reboot(void)
|
|||
|
||||
void system_exception_wait(void)
|
||||
{
|
||||
/* make sure lcd+backlight are on */
|
||||
_backlight_panic_on();
|
||||
/* wait until button release (if a button is pressed) */
|
||||
while(button_read_device());
|
||||
/* then wait until next button press */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue