USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.

Dependencies:   FATFileSystem

Fork of F401RE-USBHost by Norimasa Okamoto

Revision:
14:b167f2b97cb7
Parent:
13:8774c07f12a5
Child:
16:981c3104f6c0
diff -r 8774c07f12a5 -r b167f2b97cb7 USBHost/USBHALHost_F401RE.cpp
--- a/USBHost/USBHALHost_F401RE.cpp	Tue Jun 10 13:38:41 2014 +0900
+++ b/USBHost/USBHALHost_F401RE.cpp	Fri Jun 13 08:21:22 2014 +0900
@@ -343,7 +343,7 @@
             case URB_DONE:
                 LastStatus = ACK;
                 ep->toggleData01();
-                return HAL_HCD_HC_GetXferCount(&hhcd_USB_OTG_FS, CH_CTL_OUT);
+                return size;
 
             default:
                 break;
@@ -370,7 +370,7 @@
         return -1;
     }
     ep->toggleData01();
-    return HAL_HCD_HC_GetXferCount(&hhcd_USB_OTG_FS, CH_INT_OUT);
+    return size;
 }
 
 int USBHALHost::token_blk_out(USBEndpoint* ep, const uint8_t* data, int size, int retryLimit) {
@@ -391,7 +391,7 @@
                     case HC_XFRC: // ACK
                         LastStatus = ep->getData01();
                         ep->toggleData01();
-                        return HAL_HCD_HC_GetXferCount(&hhcd_USB_OTG_FS, CH_BLK_OUT);
+                        return size;
                     default:
                         break;
                 }