summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-11-21 23:55:39 +0000
committerJens Arnold <amiconn@rockbox.org>2005-11-21 23:55:39 +0000
commitb51f7dfc9b507ab9db12fe90b2ddad708f435e06 (patch)
treeefcef3411689401da21795d700a0741f8ab1072b /uisimulator/common
parente68680ac310adb8373c9f3a5194466766d64cf37 (diff)
downloadrockbox-b51f7dfc9b507ab9db12fe90b2ddad708f435e06.tar.gz
rockbox-b51f7dfc9b507ab9db12fe90b2ddad708f435e06.zip
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
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/stubs.c33
1 files changed, 8 insertions, 25 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c
index 0bbecdae41..ff66c1fab3 100644
--- a/uisimulator/common/stubs.c
+++ b/uisimulator/common/stubs.c
@@ -78,21 +78,19 @@ void audio_set_buffer_margin(int seconds)
78} 78}
79#endif 79#endif
80 80
81/* Generic firmware stubs. */ 81#ifdef CONFIG_BACKLIGHT
82void backlight_on(void) 82void sim_backlight(int value)
83{ 83{
84 /* we could do something better here! */ 84 DEBUGF("backlight: %s\n", (value > 0) ? "on" : "off");
85}
86
87void backlight_off(void)
88{
89 /* we could do something better here! */
90} 85}
86#endif
91 87
92void backlight_time(int dummy) 88#ifdef HAVE_REMOTE_LCD
89void sim_remote_backlight(int value)
93{ 90{
94 (void)dummy; 91 DEBUGF("remote backlight: %s\n", (value > 0) ? "on" : "off");
95} 92}
93#endif
96 94
97int fat_startsector(void) 95int fat_startsector(void)
98{ 96{
@@ -167,21 +165,6 @@ bool simulate_usb(void)
167 return false; 165 return false;
168} 166}
169 167
170void backlight_set_timeout(int index)
171{
172 (void)index;
173}
174
175void backlight_set_on_when_charging(bool beep)
176{
177 (void)beep;
178}
179
180void remote_backlight_set_timeout(int index)
181{
182 (void)index;
183}
184
185int rtc_read(int address) 168int rtc_read(int address)
186{ 169{
187 time_t now = time(NULL); 170 time_t now = time(NULL);