hathach / tinyusb

An open source cross-platform USB stack for embedded system
https://www.tinyusb.org
MIT License
4.66k stars 997 forks source link

usbh: Add set address recovery time #2681

Open Ryzee119 opened 1 week ago

Ryzee119 commented 1 week ago

Describe the PR Will close https://github.com/hathach/tinyusb/issues/2673

Additional context Ref USB Spec 9.2.6.3 After successful completion of the Status stage, the device is allowed a SetAddress() recovery interval of 2 ms. At the end of this interval, the device must be able to accept Setup packets addressed to the new address. Also, at the end of the recovery interval, the device must not respond to tokens sent to the old address (unless, of course, the old and new address is the same).