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

@ -27,7 +27,7 @@
#include "lcd.h"
/* Returns the current state of the backlight (true=ON, false=OFF). */
bool _backlight_init(void)
bool backlight_hw_init(void)
{
or_l(0x00020000, &GPIO1_ENABLE);
or_l(0x00020000, &GPIO1_FUNCTION);
@ -45,12 +45,12 @@ void _backlight_hw_off(void)
or_l(0x00020000, &GPIO1_OUT);
}
void _remote_backlight_on(void)
void remote_backlight_hw_on(void)
{
and_l(~0x00000800, &GPIO_OUT);
}
void _remote_backlight_off(void)
void remote_backlight_hw_off(void)
{
or_l(0x00000800, &GPIO_OUT);
}

View file

@ -21,22 +21,19 @@
#ifndef BACKLIGHT_TARGET_H
#define BACKLIGHT_TARGET_H
bool _backlight_init(void); /* Returns backlight current state (true=ON). */
void _backlight_hw_on(void);
void _backlight_hw_off(void);
bool backlight_hw_init(void); /* Returns backlight current state (true=ON). */
void backlight_hw_on(void);
void backlight_hw_off(void);
#ifdef BOOTLOADER
#define _backlight_on() _backlight_hw_on()
#define _backlight_off() _backlight_hw_off()
#else
#define _backlight_on_isr() _backlight_hw_on()
#define _backlight_off_isr() _backlight_hw_off()
#define _backlight_on_normal() _backlight_hw_on()
#define _backlight_off_normal() _backlight_hw_off()
#ifndef BOOTLOADER
#define backlight_hw_on_isr() backlight_hw_on()
#define backlight_hw_off_isr() backlight_hw_off()
#define backlight_hw_on_normal() backlight_hw_on()
#define backlight_hw_off_normal() backlight_hw_off()
#define _BACKLIGHT_FADE_BOOST
#endif
void _remote_backlight_on(void);
void _remote_backlight_off(void);
void remote_backlight_hw_on(void);
void remote_backlight_hw_off(void);
#endif