Get rid of stupid _backlight_* function names

_remote_backlight_* and _buttonlight_* are cleaned as well

Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
Marcin Bukat 2015-01-09 00:22:40 +01:00 committed by Gerrit Rockbox
parent 2a3e1628a5
commit 89ba7e818c
148 changed files with 679 additions and 687 deletions

View file

@ -32,7 +32,7 @@
level. This makes the brightness curve more linear to the human eye.
*/
void _backlight_set_brightness(int brightness)
void backlight_hw_brightness(int brightness)
{
/* pwm = round(sqrt(2)**x), where brightness level x = 1..16 */
static const unsigned int logtable[] =
@ -42,21 +42,21 @@ void _backlight_set_brightness(int brightness)
TCDATA0 = logtable[brightness];
}
void _backlight_on(void)
void backlight_hw_on(void)
{
/* configure backlight pin P0.2 as timer PWM output */
PCON0 = ((PCON0 & ~(3 << 4)) | (2 << 4));
_backlight_set_brightness(backlight_brightness);
backlight_hw_brightness(backlight_brightness);
}
void _backlight_off(void)
void backlight_hw_off(void)
{
/* configure backlight pin P0.2 as GPIO and switch off */
PCON0 = ((PCON0 & ~(3 << 4)) | (1 << 4));
PDAT0 &= ~(1 << 2);
}
bool _backlight_init(void)
bool backlight_hw_init(void)
{
/* enable timer clock */
PWRCON &= ~(1 << 4);
@ -72,7 +72,7 @@ bool _backlight_init(void)
TCPRE = 20; /* prescaler */
TCCMD = (1 << 0); /* TC_EN */
_backlight_on();
backlight_hw_on();
return true;
}