mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
parent
2a3e1628a5
commit
89ba7e818c
148 changed files with 679 additions and 687 deletions
|
|
@ -26,15 +26,15 @@
|
|||
#include "pcf50606.h"
|
||||
#include "lcd.h"
|
||||
|
||||
bool _backlight_init(void)
|
||||
bool backlight_hw_init(void)
|
||||
{
|
||||
_backlight_set_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
_backlight_on();
|
||||
backlight_hw_brightness(DEFAULT_BRIGHTNESS_SETTING);
|
||||
backlight_hw_on();
|
||||
|
||||
return true; /* Backlight always ON after boot. */
|
||||
}
|
||||
|
||||
void _backlight_on(void)
|
||||
void backlight_hw_on(void)
|
||||
{
|
||||
int level;
|
||||
#ifdef HAVE_LCD_ENABLE
|
||||
|
|
@ -45,7 +45,7 @@ void _backlight_on(void)
|
|||
restore_irq(level);
|
||||
}
|
||||
|
||||
void _backlight_off(void)
|
||||
void backlight_hw_off(void)
|
||||
{
|
||||
int level = disable_irq_save();
|
||||
pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */
|
||||
|
|
@ -56,7 +56,7 @@ void _backlight_off(void)
|
|||
}
|
||||
|
||||
/* set brightness by changing the PWM */
|
||||
void _backlight_set_brightness(int val)
|
||||
void backlight_hw_brightness(int val)
|
||||
{
|
||||
/* disable IRQs while bitbanging */
|
||||
int old_irq_level = disable_irq_save();
|
||||
|
|
@ -65,12 +65,12 @@ void _backlight_set_brightness(int val)
|
|||
restore_irq(old_irq_level);
|
||||
}
|
||||
|
||||
void _remote_backlight_on(void)
|
||||
void remote_backlight_hw_on(void)
|
||||
{
|
||||
and_l(~0x00200000, &GPIO_OUT);
|
||||
}
|
||||
|
||||
void _remote_backlight_off(void)
|
||||
void remote_backlight_hw_off(void)
|
||||
{
|
||||
or_l(0x00200000, &GPIO_OUT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue