mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 11:05:21 +00:00
Currently the cdc_acm implementation pass the data to usb_transfer() by a chunk of IN endpoint MPS. This has 2 drawbacks: - at higher throughput, each transfer needs 2 packets due to the need of an extra ZLP; - a temporary buffer of size USB MPS is needed. This patch improves the memory consumption and performances by passing the ring buffer directly to usb_transfer(). It only has a small performance degradation when the ring buffer wraps and less than a IN endpoint MPS has to be sent. Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> |
||
---|---|---|
.. | ||
class | ||
bos.c | ||
CMakeLists.txt | ||
Kconfig | ||
os_desc.c | ||
os_desc.h | ||
usb_descriptor.c | ||
usb_descriptor.h | ||
usb_device.c | ||
usb_transfer.c | ||
usb_transfer.h |