add isochronous transfer interface for LogitechC270(USBHostC270)

Dependencies:   FATFileSystem mbed-rtos

Dependents:   USBHostC210_example USBHostC270_example GSwifi_ap_webcam n-bed-USBHostC270_example

Fork of USBHost by mbed official

Files at this revision

API Documentation at this revision

Comitter:
va009039
Date:
Wed Mar 20 14:09:31 2013 +0000
Parent:
10:5cc7bad4f28e
Commit message:
fixed skip bit

Changed in this revision

USBHost/USBHost.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 5cc7bad4f28e -r a338d6a681fb USBHost/USBHost.cpp
--- a/USBHost/USBHost.cpp	Sat Mar 16 13:05:41 2013 +0000
+++ b/USBHost/USBHost.cpp	Wed Mar 20 14:09:31 2013 +0000
@@ -17,7 +17,7 @@
 
 #include "USBHost.h"
 #include "USBHostHub.h"
-#include "BaseUvc.h"
+#include "USBIsochronous.h"
 
 USBHost * USBHost::instHost = NULL;
 
@@ -306,9 +306,9 @@
         tdList = (volatile HCTD*)td->nextTD; //Dequeue element now as it could be modified below
         if (!isTD((uint8_t*)td)) { // ITD?
             HCITD* itd = (HCITD*)td;
-            BaseEp* ep = itd->ep;
+            IsochronousEp* ep = itd->ep;
             if (ep) {
-                ep->irqWdhHandler((HCTD*)itd);
+                ep->irqWdhHandler(itd);
             }
             continue;
         }
@@ -432,7 +432,7 @@
                 for (int i = 0; i < dev->getInterface(j)->nb_endpoint; i++) {
                     if ((ep = dev->getEndpoint(j, i)) != NULL) {
                         ed = (HCED *)ep->getHCED();
-                        ed->control |= (1 << 13); //sKip bit
+                        ed->control |= (1 << 14); //sKip bit
                         unqueueEndpoint(ep);
 
                         freeTD((volatile uint8_t*)ep->getTDList()[0]);