From 0107dfc8276d73744bb097d643809205ef21d97b Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 9 Sep 2007 01:59:07 +0000 Subject: 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 --- firmware/backlight.c | 7 ++++++- firmware/export/kernel.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'firmware') 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) lcd_remote_off(); break; #endif /* defined(HAVE_REMOTE_LCD) && !defined(SIMULATOR) */ - +#ifdef SIMULATOR + /* This one here too for lack of a better place */ + case SYS_SCREENDUMP: + screen_dump(); + break; +#endif case SYS_USB_CONNECTED: /* Tell the USB thread that we are safe */ DEBUGF("backlight_thread got SYS_USB_CONNECTED\n"); diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index bf5a9d10c3..9ada8eb59c 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -41,6 +41,7 @@ #define SYS_EVENT_CLS_POWER 2 #define SYS_EVENT_CLS_FILESYS 3 #define SYS_EVENT_CLS_PLUG 4 +#define SYS_EVENT_CLS_MISC 5 /* make sure SYS_EVENT_CLS_BITS has enough range */ /* Bit 31->|S|c...c|i...i| */ @@ -68,6 +69,7 @@ #define SYS_PHONE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 3) #define SYS_REMOTE_PLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 4) #define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5) +#define SYS_SCREENDUMP MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0) struct event { -- cgit v1.2.3