Support Isochronous transfer additionally
Dependents: USBHostC270_example_GR-PEACH USBHostDac_example USBHostDac_Audio_in_out
Fork of USBHost_custom by
Revision 10:0c11cf1cc218, committed 2013-03-18
- Comitter:
- samux
- Date:
- Mon Mar 18 14:46:56 2013 +0000
- Parent:
- 9:7671b6a8c363
- Child:
- 11:0e0baf9a3236
- Commit message:
- fixed skip bit - fixed max size conf descriptor
Changed in this revision
| USBHost/USBHost.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBHost/USBHost.cpp Thu Mar 14 14:20:03 2013 +0000
+++ b/USBHost/USBHost.cpp Mon Mar 18 14:46:56 2013 +0000
@@ -423,7 +423,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]);
@@ -851,7 +851,7 @@
pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
- res = getConfigurationDescriptor(dev, data, 400, &total_conf_descr_length);
+ res = getConfigurationDescriptor(dev, data, 300, &total_conf_descr_length);
if (res != USB_TYPE_OK) {
usb_mutex.unlock();
return res;
