Commit Graph

8708 Commits

Author SHA1 Message Date
hathach
ab8160a29b hcd work with esp32p4 in slave mode but have issue with DMA mode. In slave it enumerate device but has issue with msc bulk in 2024-11-07 16:37:33 +07:00
hathach
48b32f5d1e enable host dwc2 dma by default 2024-11-07 15:18:09 +07:00
hathach
9920ebff4a update bsp for h7 to support host mode 2024-11-07 15:04:19 +07:00
hathach
4baeeeb564 enable stm32f4 host 2024-11-07 09:49:04 +07:00
hathach
772edf879b fix iar build 2024-11-06 22:13:05 +07:00
hathach
e5c26924ed update bsp for f7 2024-11-06 21:46:18 +07:00
hathach
fe79a93594 implement split for slave, got mouse working 2024-11-06 12:09:32 +07:00
hathach
fbc193647a split interrupt work with fs mouse 2024-11-05 16:26:56 +07:00
hathach
372db1e19a implement split transaction, got control working 2024-11-05 10:37:39 +07:00
hathach
5f891e020c usbh use the new tusb_time_delay_ms_api()
fix duplicated device attach for some devices which cause "USBH Defer Attach until current enumeration complete"
include dev0 for tuh_edpt_abort_xfer()
2024-11-04 17:24:49 +07:00
hathach
29262f3e24 improve port0_enable(), properly configure hcfg and hfir according to port speed. Enable low power UTMI+ phy mode for ls/fs device. 2024-11-04 17:22:25 +07:00
hathach
80ad7c4e87 add tusb_time_millis_api() and default/weak tusb_time_delay_ms_api(). Which is required for host and some device without RTOS. 2024-11-04 17:20:58 +07:00
HiFiPhile
cdc98e12c1 Improve EP IN flow control.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:09:51 +01:00
HiFiPhile
ed8d2c9594 Fix align issue of _audiod_fct.alt_setting.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2024-11-02 17:07:44 +01:00
HiFiPhile
54df3b2e94 mimxrt1170_evkb: add M4 build support. 2024-11-02 15:13:08 +01:00
hathach
5d6d905cb0 got interrupt in working with slave 2024-11-02 20:20:27 +07:00
HiFiPhile
56f53a6132 Replace cache clean/invalidate by MPU config. 2024-11-02 12:50:32 +01:00
HiFiPhile
038be21e4d Merge pull request #2713 from rgrr/ncm-fix-in-tud_network_recv_renew
NCM: avoid recursions in tud_network_recv_renew()
2024-11-01 22:22:31 +01:00
HiFiPhile
b648a38ae8 Fix Warning[Pe188]: enumerated type mixed with another type. 2024-11-01 19:49:00 +01:00
hathach
a0f75e5b67 fix slave in nak & ack order 2024-11-02 00:20:40 +07:00
hathach
c96e04159e implement periodic endpoint using sof 2024-11-01 21:31:01 +07:00
hathach
4f288c030a move buffer and buflen to hcd_endpoint_t to support periodic endpoint 2024-11-01 20:58:29 +07:00
hathach
b1182de872 clean up is_period 2024-11-01 19:04:32 +07:00
hathach
b7ff10f59c rename and add both CFG_TUH_DWC2_SLAVE_ENABLE/CFG_TUH_DWC2_DMA_ENABLE better out dma handle 2024-11-01 17:54:10 +07:00
hathach
4c8ce9733a dma host work well with bulk/control 2024-11-01 16:55:12 +07:00
hathach
f7f80e844c do ping for slave out when nak/nyet 2024-10-31 23:22:49 +07:00
hathach
9afa64014c testing hcd with dma, work well after enumeration. 2024-10-31 21:37:57 +07:00
hathach
9897a36ac4 fix f7 ci build 2024-10-31 12:11:47 +07:00
hathach
92e7ac6c23 fix bulk out and txfifo_empty(), should not rely on hcchar_bm.ep_size for OUT. msc explorer seems to work well. 2024-10-31 10:50:09 +07:00
HiFiPhile
b89fa89779 Merge pull request #2861 from bollenn/callback-doxygen-info
Extend callback information
2024-10-30 21:10:09 +01:00
hathach
80d8157048 handle out nak slave -> halted -> retry transfer 2024-10-30 18:11:41 +07:00
Bollen Nico
5d74fb43b3 Extend callback information 2024-10-29 20:41:13 +01: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
77fa2f6701 fix make build 2024-10-25 19:27:09 +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
GuavTek
ebcd7067c9 Recover host enumeration from zero length descriptors 2024-10-18 18:05:58 +02:00
hathach
61b33ca926 testing hcd with f723 due to h743eval issue with mfx vbus drive. 2024-10-18 22:16:21 +07:00