summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-01-22 22:05:04 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-01-22 22:05:04 +0000
commitda76a3469437261bd8857c6eddeaafcc601f373e (patch)
tree33e6c461aeb03d28575166c5ed5002aaf8ea9741 /apps
parent81df953da55e75632b5efbe676f2b348e11b2c4b (diff)
downloadrockbox-da76a3469437261bd8857c6eddeaafcc601f373e.tar.gz
rockbox-da76a3469437261bd8857c6eddeaafcc601f373e.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/main.c6
1 files changed, 5 insertions, 1 deletions
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)
141 viewportmanager_set_statusbar(true); 141 viewportmanager_set_statusbar(true);
142 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, 142 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false,
143 viewportmanager_statusbar_changed); 143 viewportmanager_statusbar_changed);
144#ifdef HAVE_USBSTACK
145 /* All threads should be created and public queues registered by now */
146 usb_start_monitoring();
147#endif
144 root_menu(); 148 root_menu();
145} 149}
146 150
@@ -454,8 +458,8 @@ static void init(void)
454 eeprom_settings_init(); 458 eeprom_settings_init();
455#endif 459#endif
456 460
457 usb_start_monitoring();
458#ifndef HAVE_USBSTACK 461#ifndef HAVE_USBSTACK
462 usb_start_monitoring();
459 while (usb_detect() == USB_INSERTED) 463 while (usb_detect() == USB_INSERTED)
460 { 464 {
461#ifdef HAVE_EEPROM_SETTINGS 465#ifdef HAVE_EEPROM_SETTINGS