summaryrefslogtreecommitdiff
path: root/demo/cdc_ncm_template.c
AgeCommit message (Collapse)Author
2026-09-20feat(demo): split config to fs & hs, add other speed descsakumisu
Signed-off-by: sakumisu <[email protected]>
2026-08-17feat(class/cdc/usbd_ncm): 添加usb device ncm功能 (#433)54fire
* 添加usb device ncm功能 * fix(class/cdc/usbd_ncm): address review findings - fix compile failure when CONFIG_USBDEV_CDC_NCM_USING_LWIP is disabled - fix GET/SET_NTB_INPUT_SIZE operating on the OUT direction size, and honor the negotiated IN limit in the transmit path - set tx busy flag before submitting the transfer to avoid a race that could block transmit permanently - follow the ndp chain via wNextNdpIndex so chained datagrams are not dropped, and access ntb fields with LE helpers instead of assuming a little-endian target - reject oversized frames instead of transmitting truncated ones - register endpoints only once when initializing both interfaces - wait for tx completion with a timeout in the demo instead of an unbounded busy wait - make usbd_cdc_ncm.h self-contained Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>