Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBHostWANDongle by
Diff: USBHost/USBHost.cpp
- Revision:
- 8:0d1ec493842c
- Parent:
- 7:c4483d48fe96
- Child:
- 9:c9e9817c398c
diff -r c4483d48fe96 -r 0d1ec493842c USBHost/USBHost.cpp --- a/USBHost/USBHost.cpp Sat Jul 28 14:15:14 2012 +0000 +++ b/USBHost/USBHost.cpp Mon Jul 30 13:51:34 2012 +0000 @@ -512,9 +512,9 @@ DEVICE_DESCRIPTOR_LENGTH); } -USB_TYPE USBHost::getConfigurationDescriptor(USBDeviceConnected * dev, uint8_t * buf, uint8_t * len_conf_descr) { +USB_TYPE USBHost::getConfigurationDescriptor(USBDeviceConnected * dev, uint8_t * buf, uint16_t * len_conf_descr) { USB_TYPE res; - uint8_t total_conf_descr_length = 0; + uint16_t total_conf_descr_length = 0; // fourth step: get the beginning of the configuration descriptor to have the total length of the conf descr res = controlRead( dev, @@ -559,8 +559,8 @@ // enumerate a device with the control endpoint USB_TYPE USBHost::enumerate(USBDeviceConnected * dev, IUSBEnumerator* pEnumerator) { - uint8_t data[256]; - uint8_t total_conf_descr_length = 0; + uint8_t data[384]; + uint16_t total_conf_descr_length = 0; USB_TYPE res; DBG("data = %p", data);