summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-09 01:59:07 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-09 01:59:07 +0000
commit0107dfc8276d73744bb097d643809205ef21d97b (patch)
tree17d434f51652d949d8167abaf85fe0eacd33612a /firmware/backlight.c
parent424750ea95409c6e78188aa47fe7a0f47d1127cb (diff)
downloadrockbox-0107dfc8276d73744bb097d643809205ef21d97b.tar.gz
rockbox-0107dfc8276d73744bb097d643809205ef21d97b.zip
UISIMULATOR: Give the host OS some needed context switching hints (which _is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 2ba4d6ed1d..41f0f75424 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -487,7 +487,12 @@ void backlight_thread(void)
487 lcd_remote_off(); 487 lcd_remote_off();
488 break; 488 break;
489#endif /* defined(HAVE_REMOTE_LCD) && !defined(SIMULATOR) */ 489#endif /* defined(HAVE_REMOTE_LCD) && !defined(SIMULATOR) */
490 490#ifdef SIMULATOR
491 /* This one here too for lack of a better place */
492 case SYS_SCREENDUMP:
493 screen_dump();
494 break;
495#endif
491 case SYS_USB_CONNECTED: 496 case SYS_USB_CONNECTED:
492 /* Tell the USB thread that we are safe */ 497 /* Tell the USB thread that we are safe */
493 DEBUGF("backlight_thread got SYS_USB_CONNECTED\n"); 498 DEBUGF("backlight_thread got SYS_USB_CONNECTED\n");