From da76a3469437261bd8857c6eddeaafcc601f373e Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 22 Jan 2009 22:05:04 +0000 Subject: Use bus reset detection for all ARC OTG devices. Remove conflict from LV24020LP driver with some GPIO-by-number macros for PP502x. Start monitoring for USB stack once all core threads and queues are created otherwise queues will likely be registered after USB acks. Putting PP502x system_reboot in IRAM (unmapped, uncached) memory seems to help it work more consistently. Hopefully I got all the PP USB connect handlers in the right spot in irq_handler. If device seems unresponsive to cable, check there first. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19819 a1c6a512-1295-4272-9138-f99709370657 --- apps/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/main.c') diff --git a/apps/main.c b/apps/main.c index 4e66a851f1..8a1f0a986c 100644 --- a/apps/main.c +++ b/apps/main.c @@ -141,6 +141,10 @@ static void app_main(void) viewportmanager_set_statusbar(true); add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, viewportmanager_statusbar_changed); +#ifdef HAVE_USBSTACK + /* All threads should be created and public queues registered by now */ + usb_start_monitoring(); +#endif root_menu(); } @@ -454,8 +458,8 @@ static void init(void) eeprom_settings_init(); #endif - usb_start_monitoring(); #ifndef HAVE_USBSTACK + usb_start_monitoring(); while (usb_detect() == USB_INSERTED) { #ifdef HAVE_EEPROM_SETTINGS -- cgit v1.2.3