xmos / lib_device_control

xCORE device control library
Other
2 stars 16 forks source link

Increase USB timeout to 500ms #81

Closed larry-xmos closed 4 years ago

larry-xmos commented 4 years ago

libusb uses a timeout value that in the USB HAL is currently set at 100ms. I don't think there is a specific reason behind that value, and a longer timeout such as 500ms (USB 2.0 specification 9.2.6.4) would work better.

I have been recently debugging a DFU scenario where a longer timeout would make it not an issue at all

(Copy of #80)