Commit Graph

69 Commits

Author SHA1 Message Date
hathach
80d8157048 handle out nak slave -> halted -> retry transfer 2024-10-30 18:11:41 +07:00
hathach
3c1cb0e08f correct the fifo_available comparison (words not byte) 2024-10-29 22:48:58 +07:00
hathach
616b5770f2 fix pid token calculation, implement hcd_edpt_clear_stall(). msc explorer example read work, but write10 still wip 2024-10-29 21:54:21 +07:00
hathach
074811c251 refactor channel_send_in_token(), support IN token for multiple transaction per transfer 2024-10-29 19:08:45 +07:00
hathach
df55d587df update handle in/out, separate allocated and xfer result to make it easier to manage. Fix channel disable/deallocated. 2024-10-29 18:23:56 +07:00
hathach
1e164412bf split handle channel slave out/in 2024-10-29 16:06:44 +07:00
hathach
cef9bab4b5 minor clean up 2024-10-29 15:07:28 +07:00
hathach
4797c4f508 fix nptx fifo empty handling 2024-10-29 14:47:44 +07:00
hathach
c93d3eda5f restructure, add hcd endpoint, xfer to minimize footprint for managing xfer. 2024-10-29 13:01:48 +07:00
hathach
f953b6bf92 minor rename 2024-10-28 18:40:21 +07:00
hathach
dd99da9dce implement hcd_edpt_abort_xfer, hcd_device_close,
check request queue available before making usb attempt. Though there is no handling when queue is full.
device_info example work well
2024-10-28 17:45:44 +07:00
hathach
79c0a249e8 got In transfer working, able to get 1st device descriptor and set address 2024-10-25 22:56:25 +07:00
hathach
07abc722b6 hcd able to send setup packet 2024-10-25 19:00:45 +07:00
hathach
063661e3a3 more progress on dwc2 hcd, initial code for edpt xfer 2024-10-25 00:20:34 +07:00
hathach
8461525d48 add tusb_time_millis(), able to reset and enable dwc2 port and get SOF active 2024-10-21 18:18:33 +07:00
hathach
f5978876d2 get hprt interrupt triggered 2024-10-21 11:43:37 +07:00
hathach
b5a4f18879 get hpri triggered 2024-10-17 15:56:12 +07:00
hathach
8d9d3d9a2a move gahbcfg/gintmsk with dma to dwc2 common 2024-10-16 13:19:28 +07:00
hathach
10a3aa3cc8 adding hcd dwc2 2024-10-15 13:03:12 +07:00