2018.07.26

Dependencies:   FATFileSystem3 mbed-rtos

Fork of USBHost by mbed official

Revision:
4:b320d68e98e7
Parent:
0:a554658735bf
Child:
8:93da8ea2708b
diff -r 0f5c32575eb8 -r b320d68e98e7 USBHost/USBEndpoint.cpp
--- a/USBHost/USBEndpoint.cpp	Wed Mar 06 17:50:07 2013 +0000
+++ b/USBHost/USBEndpoint.cpp	Tue Mar 12 17:23:37 2013 +0000
@@ -54,6 +54,8 @@
 
     td_current = td_list[0];
     td_next = td_list[1];
+    
+    intf_nb = 0;
 
     state = USB_TYPE_IDLE;
 }
@@ -140,7 +142,7 @@
 
     //Now add this free TD at this end of the queue
     state = USB_TYPE_PROCESSING;
-    td_current->nextTD = (uint32_t)td_next;
+    td_current->nextTD = td_next;
     hced->tailTD = td_next;
 }
 
@@ -158,6 +160,5 @@
 void USBEndpoint::queueEndpoint(USBEndpoint * ed)
 {
     nextEp = ed;
-    hced->nextED = (ed == NULL) ? 0 : (uint32_t)ed->getHCED();
+    hced->nextED = (ed == NULL) ? 0 : ed->getHCED();
 }
-