Skip to content
Commit d770a4c5 authored by Chew Zeh Yang's avatar Chew Zeh Yang Committed by Benjamin Cabé
Browse files

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 the sending of the short packet
termination mentioned above, ensuring condition of short packet
terminate is fulfilled.

Signed-off-by: default avatarChew Zeh Yang <zeon.chew@ambiq.com>
parent 76e1e1b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment