summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-05-23 19:30:22 +0200
committerHiFiPhile <[email protected]>2026-05-23 19:37:47 +0200
commit420de14b50dc2b9c1ed7ba587ef22eb227739eee (patch)
treeef1bca7a4ec6023aedcf3c050d6142c000b14e67 /examples/host
parent1fc308fb87935e6260349d5721ee81c046b68461 (diff)
dcd/ch32hs: refactor transfer flow
Refactor the driver to follow USBFS style for easier maintenance. Replace the old packet/response helpers with explicit queue and update paths for IN and OUT transfers. Introduce transfer validity tracking and per-endpoint data toggle state. Reset toggle state on init, close-all, endpoint close, clear-stall, and bus reset. Initialize endpoint controls consistently in NAK + TOG_0 mode. Tighten EP0 setup/status handling and route transfer IRQ processing through the transfer-flag path. Stop enabling ISO_ACT in INT_EN and clear unhandled interrupt flags explicitly. Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'examples/host')
0 files changed, 0 insertions, 0 deletions