esp-idf/components/usb/test/hcd
Darian Leung b3b8ed79c8 usb: HCD multiple fixes
This commit fixes the following bugs in the HCD

- HCD control pipes fill incorrect transfer size

_buffer_fill_ctrl() would fill the transfer descriptors length with
wLength instead of transfer->num_bytes. Therefore, the remaining length
would be incorrect when a control transfer requests more bytes than are
available.

- Fix USB_TRANSFER_FLAG_ZERO_PACK behavior

The previous behavior of USB_TRANSFER_FLAG_ZERO_PACK was incorrect, and did not
support interrupt pipes. A zero length packet can now be added to Bulk/Interrupt
OUT transfers where the length is a multiple of the endpoint's MPS.

- Fixed HCD port suspend and resume test case

Halting a control pipe mid control transfer can lead some test devices to get stuck
2022-02-18 15:51:05 +08:00
..
test_hcd_bulk.c Add USB Host Library 2021-08-24 23:28:00 +08:00
test_hcd_common.c usb: Add USB Host Library sudden disconnect tests 2021-11-11 16:26:35 +08:00
test_hcd_common.h usb: Add USB Host Library sudden disconnect tests 2021-11-11 16:26:35 +08:00
test_hcd_ctrl.c Add USB Host Library 2021-08-24 23:28:00 +08:00
test_hcd_intr.c Add USB Host Library 2021-08-24 23:28:00 +08:00
test_hcd_isoc.c usb: Add USB Host Library sudden disconnect tests 2021-11-11 16:26:35 +08:00
test_hcd_port.c usb: HCD multiple fixes 2022-02-18 15:51:05 +08:00