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
|
|
@ -24,22 +24,22 @@
|
|||
#include <stdbool.h>
|
||||
#include "cpu.h"
|
||||
|
||||
void _backlight_on(void);
|
||||
void _backlight_off(void);
|
||||
#define _backlight_panic_on() _backlight_on()
|
||||
void backlight_hw_on(void);
|
||||
void backlight_hw_off(void);
|
||||
#define _backlight_panic_on() backlight_hw_on()
|
||||
|
||||
static inline bool _backlight_init(void)
|
||||
static inline bool backlight_hw_init(void)
|
||||
{
|
||||
GPIOA_DIR |= 1<<5; /* for button light */
|
||||
return true;
|
||||
}
|
||||
|
||||
static inline void _buttonlight_on(void)
|
||||
static inline void buttonlight_hw_on(void)
|
||||
{
|
||||
GPIOA_PIN(5) = 1<<5;
|
||||
}
|
||||
|
||||
static inline void _buttonlight_off(void)
|
||||
static inline void buttonlight_hw_off(void)
|
||||
{
|
||||
GPIOA_PIN(5) = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue