Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usbd: device_next: cdc: add option to enable short packet terminate
For usbser.sys driver, which is the default USB host driver for CDC devices in windows, it is expected that USB device always indicate completion of transmission by short packet. In case where the last packet length is multiple of max packet size of the BULK IN endpoint, the USB device shall indicate completion of transmission by sending a zero length packet. This commit adds an option to usbd_cdc_acm to enable the enforcement of zero length packet mentioned above, ensuring that condition of short packet terminate is fulfilled. Signed-off-by: Chew Zeh Yang <[email protected]>
- Loading branch information