USB Host Library for Sprint Dongles

Fork of USBHostWANDongleSprint by mbed official

Revision:
2:34c976009b70
Parent:
0:bfed5767d0a5
Child:
3:9ec92dd8a8cb
--- a/USBHost/USBHALHost.cpp	Wed Sep 12 09:46:40 2012 +0000
+++ b/USBHost/USBHALHost.cpp	Mon Sep 24 09:08:49 2012 +0000
@@ -54,7 +54,7 @@
 
 USBHALHost * USBHALHost::instHost;
 
-USBHALHost::USBHALHost() : thread(USBHALHost::staticCb, (void*)this, osPriorityNormal, 4*128) {
+USBHALHost::USBHALHost() : thread(USBHALHost::staticCb, (void*)this, osPriorityNormal, /*4*128*/4*192) {
     instHost = this;
     memInit();
     memset((void*)usb_hcca, 0, HCCA_SIZE);
@@ -337,7 +337,7 @@
 
           // When DRWE is on, Connect Status Change
           // means a remote wakeup event.
-
+          WARN("WUP");
         }
         else
         {
@@ -349,14 +349,14 @@
           { //Root device connected
             //Device connected
             WARN("Device connected!!");
-           // Thread::wait(500);
+            Thread::wait(2000);
             deviceConnected(0, 1, LPC_USB->HcRhPortStatus1 & OR_RH_PORT_LSDA); //Hub 0 (root hub), Port 1 (count starts at 1), Low or High speed
           }
           else
           { //Root device disconnected
             //Device disconnected
             WARN("Device disconnected!!");
-            Thread::wait(500);
+            Thread::wait(2000);
             if (!(int_status & OR_INTR_STATUS_WDH))
             {
               usb_hcca->DoneHead = 0;
@@ -367,7 +367,6 @@
               usb_hcca->DoneHead = 0;
               LPC_USB->HcInterruptStatus = OR_INTR_STATUS_WDH;
             }
-
           }
           //TODO: HUBS
         }