mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
move _remote_backlight_* to common header
remove unused REMOTE_INIT_LCD / REMOTE_DEINIT_LCD git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31607 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ab12df153
commit
351c8b2573
8 changed files with 14 additions and 45 deletions
|
|
@ -65,6 +65,8 @@ void lcd_set_sleep_after_backlight_off(int index);
|
|||
#endif /* !HAVE_BACKLIGHT */
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
void _remote_backlight_on(void);
|
||||
void _remote_backlight_off(void);
|
||||
void remote_backlight_on(void);
|
||||
void remote_backlight_off(void);
|
||||
void remote_backlight_set_timeout(int value);
|
||||
|
|
|
|||
|
|
@ -22,7 +22,6 @@
|
|||
#include "config.h"
|
||||
#include "system.h"
|
||||
#include "backlight-target.h"
|
||||
#include "lcd-remote-target.h"
|
||||
|
||||
#define MIN_BRIGHTNESS 0x80ff08ff
|
||||
|
||||
|
|
@ -63,15 +62,3 @@ void _buttonlight_off(void)
|
|||
/* turn off all touchpad leds */
|
||||
GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL;
|
||||
}
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
void _remote_backlight_on(void)
|
||||
{
|
||||
lcd_remote_backlight(true);
|
||||
}
|
||||
|
||||
void _remote_backlight_off(void)
|
||||
{
|
||||
lcd_remote_backlight(false);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -486,16 +486,6 @@ void lcd_remote_set_contrast(int val)
|
|||
rc_status |= RC_UPDATE_CONTROLLER;
|
||||
}
|
||||
|
||||
void lcd_remote_backlight(bool on)
|
||||
{
|
||||
if (on)
|
||||
rc_status |= RC_BACKLIGHT_ON;
|
||||
else
|
||||
rc_status &= ~RC_BACKLIGHT_ON;
|
||||
|
||||
rc_status |= RC_UPDATE_CONTROLLER;
|
||||
}
|
||||
|
||||
void lcd_remote_off(void)
|
||||
{
|
||||
/* should only be used to power off at shutdown */
|
||||
|
|
@ -560,3 +550,15 @@ void lcd_remote_update_rect(int x, int y, int width, int height)
|
|||
|
||||
rc_status |= RC_UPDATE_LCD;
|
||||
}
|
||||
|
||||
void _remote_backlight_on(void)
|
||||
{
|
||||
rc_status |= RC_BACKLIGHT_ON;
|
||||
rc_status |= RC_UPDATE_CONTROLLER;
|
||||
}
|
||||
|
||||
void _remote_backlight_off(void)
|
||||
{
|
||||
rc_status &= ~RC_BACKLIGHT_ON;
|
||||
rc_status |= RC_UPDATE_CONTROLLER;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
#ifndef LCD_REMOTE_TARGET_H
|
||||
#define LCD_REMOTE_TARGET_H
|
||||
|
||||
void lcd_remote_backlight(bool on);
|
||||
|
||||
bool lcd_remote_read_device(unsigned char *data);
|
||||
|
||||
extern unsigned int rc_status;
|
||||
|
|
|
|||
|
|
@ -21,16 +21,8 @@
|
|||
#ifndef LCD_REMOTE_TARGET_H
|
||||
#define LCD_REMOTE_TARGET_H
|
||||
|
||||
#define REMOTE_INIT_LCD 1
|
||||
#define REMOTE_DEINIT_LCD 2
|
||||
|
||||
void lcd_remote_powersave(bool on);
|
||||
|
||||
#ifndef SIMULATOR
|
||||
void _remote_backlight_on(void);
|
||||
void _remote_backlight_off(void);
|
||||
#endif
|
||||
|
||||
void lcd_remote_sleep(void);
|
||||
|
||||
int remote_read_device(void);
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@
|
|||
#ifndef LCD_REMOTE_TARGET_H
|
||||
#define LCD_REMOTE_TARGET_H
|
||||
|
||||
#define REMOTE_INIT_LCD 1
|
||||
#define REMOTE_DEINIT_LCD 2
|
||||
|
||||
void lcd_remote_powersave(bool on);
|
||||
void lcd_remote_poweroff(void); /* for when remote is plugged during shutdown*/
|
||||
|
||||
|
|
|
|||
|
|
@ -21,9 +21,6 @@
|
|||
#ifndef LCD_REMOTE_TARGET_H
|
||||
#define LCD_REMOTE_TARGET_H
|
||||
|
||||
#define REMOTE_INIT_LCD 1
|
||||
#define REMOTE_DEINIT_LCD 2
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD_TICKING
|
||||
void lcd_remote_emireduce(bool state);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -39,11 +39,5 @@ void _buttonlight_set_brightness(int val);
|
|||
#endif /* HAVE_BUTTONLIGHT_BRIGHTNESS */
|
||||
#endif /* HAVE_BUTTON_LIGHT */
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
void _remote_backlight_on(void);
|
||||
void _remote_backlight_off(void);
|
||||
#endif /* HAVE_REMOTE_LCD */
|
||||
|
||||
|
||||
#endif /* BACKLIGHT_SIM_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue