Question
USB Device (MSC): how to wait for data ?
Posted on March 06, 2012 at 05:20I'm trying to implement USB device that emulates mass storage on USB FS, however, the data source is approx. 10 times slower than USB FS transmit rate.I tried to wait in Mass Storage read callback for data, but it makes everything hang.In USBD example there is a wait loop in a handler, but if I try to wait more than ~ 3 msecit does not work.The external host reads greedy, so it necessary to limit the read speed somehow. How to do it better?
