forked from len0rd/rockbox
Backlight handling: * Added 'Caption Backlight' and 'Backlight On When Charging' for the iriver remote LCD. * Enabled the backlight code for the simulator, and prepared backlight simulation. It's only a stub atm, writing messages to the console window. * Added tick task handling to the simulators for this to work. * Code cleanup in backlight.c, less dead code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8034 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e68680ac31
commit
b51f7dfc9b
29 changed files with 416 additions and 231 deletions
|
|
@ -78,21 +78,19 @@ void audio_set_buffer_margin(int seconds)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* Generic firmware stubs. */
|
||||
void backlight_on(void)
|
||||
#ifdef CONFIG_BACKLIGHT
|
||||
void sim_backlight(int value)
|
||||
{
|
||||
/* we could do something better here! */
|
||||
DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off");
|
||||
}
|
||||
#endif
|
||||
|
||||
void backlight_off(void)
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
void sim_remote_backlight(int value)
|
||||
{
|
||||
/* we could do something better here! */
|
||||
}
|
||||
|
||||
void backlight_time(int dummy)
|
||||
{
|
||||
(void)dummy;
|
||||
DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off");
|
||||
}
|
||||
#endif
|
||||
|
||||
int fat_startsector(void)
|
||||
{
|
||||
|
|
@ -167,21 +165,6 @@ bool simulate_usb(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
void backlight_set_timeout(int index)
|
||||
{
|
||||
(void)index;
|
||||
}
|
||||
|
||||
void backlight_set_on_when_charging(bool beep)
|
||||
{
|
||||
(void)beep;
|
||||
}
|
||||
|
||||
void remote_backlight_set_timeout(int index)
|
||||
{
|
||||
(void)index;
|
||||
}
|
||||
|
||||
int rtc_read(int address)
|
||||
{
|
||||
time_t now = time(NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue