Commit Graph

251 Commits

Author SHA1 Message Date
sakumisu
65b2de960b update gccfg for stm32h7/f7 2023-12-30 14:39:26 +08:00
sakumisu
019c9cff6e fix dwc2 out chan actual len 2023-12-28 20:57:50 +08:00
sakumisu
d30d08ca3a musb do not use alloc pipe 2023-12-26 22:52:32 +08:00
sakumisu
8cd31e6be0 add check for dwc2 ramsize and ep num 2023-12-26 20:11:23 +08:00
sakumisu
f68a86ea89 add usbh_deinitialize api 2023-12-24 23:37:47 +08:00
sakumisu
8a831cdaa5 user must define some configs in usb_config.h when use fsdev/musb/dwc2 2023-12-21 21:58:08 +08:00
sakumisu
bb709437aa fix musb submit_urb by 5bbe2a97 2023-12-18 20:52:07 +08:00
sakumisu
29d45ef5c7 replace struct usbd_endpoint_cfg with struct usb_endpoint_descriptor in usbh_ep_open api 2023-12-10 22:34:01 +08:00
FanHuaCloud
a1ed27523c AT32 gccfg adds the vbusig flag by default 2023-12-09 14:45:14 +08:00
sakumisu
ce2a438c99 fix uninitialized warning 2023-12-05 21:39:36 +08:00
sakumisu
b1e95f0ca3 update hc template 2023-12-05 21:34:51 +08:00
sakumisu
14f1f597f1 add usb errno, do not use system errno 2023-12-05 21:34:32 +08:00
sakumisu
82cd79989c check token only with qtd, not use token in qh 2023-12-05 20:44:30 +08:00
sakumisu
c90f273e24 port and add comment for gccfg with gd/at/st 2023-11-27 20:30:15 +08:00
sakumisu
3440e0cc1d move out dwc2 ggcfg register and config by user 2023-11-26 22:59:41 +08:00
ovo
849ea98853 bugfix: send zlp won't trigger ep tx interrupt 2023-11-26 18:48:11 +08:00
sakumisu
8e0c5b4e7e find roothub port to check if device is connecting 2023-11-24 21:09:45 +08:00
Zhihong Chen
86c7e435a3 hpmicro: update port files
- update port files

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-11-23 15:21:11 +08:00
sakumisu
5b32482c3e free pipe after sem giving 2023-11-22 21:42:56 +08:00
sakumisu
af1484882d support ehci suspend & resume 2023-11-22 19:28:30 +08:00
sakumisu
e3c9fdbb86 reduce qtd num 2023-11-22 19:28:30 +08:00
sakumisu
5bbe2a97f2 refactor urb, add ep & hport in urb to make hardware pipe more reusable 2023-11-16 19:56:52 +08:00
zhugengyu
aeffaea016 add pusb2 port, fix issue for rt-thread, add msc storage demo for rt-thread 2023-11-15 16:48:07 +08:00
sakumisu
d10cbd5daf check if token is active without errors, if token has errors, go to wakeup sem 2023-11-13 19:49:49 +08:00
Yang Xijing
ae521bf95c add nuvoton port(not release) 2023-11-05 14:38:26 +08:00
sakumisu
0738c09a4d check qtd active status to fix nbytes = 0 in nak or ping status 2023-11-03 22:18:58 +08:00
Chen Leeren
3d96f64f94 Fix possible errors in endpoint 0 datapid 2023-10-07 23:46:28 +08:00
Wayne Lin
dd1f1d3ba8 Update hcd-ehci, dcd-dwc2 and examples.
1. Add some example Msh commands.
2. Fix device enumeration on EXT hub.
3. Re-file some templates.
4. Extend end-point number of dwc2 device driver.
5. Re-file rndis_host implementation includes
   a. rt_mutex_take in ISR
   b. 2rd pmsg is unaligned issue.
   c. destroy u0 ethernet resource after removing dongle.
2023-09-07 15:07:04 +08:00
sakumisu
bc1e7c4bd5 ignore dwc2 EPENA check 2023-09-04 15:43:32 +08:00
Zhihong Chen
b9915e0e1b port: hpmicro: separate host and device USB instance config
- separate host and device USB instance config

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-08-26 12:45:31 +08:00
sakimisu
1387790744 add config for hpmicro usb instance and irq 2023-08-26 01:09:33 +08:00
sakimisu
c5fc9f338e fix macro spelling 2023-08-25 21:37:14 +08:00
sakimisu
4d61e5e053 copy bouffalo ehci glue from official sdk 2023-08-25 21:36:58 +08:00
sakimisu
628e4ee928 improve ehci driver, enable iaad feature 2023-08-25 21:36:14 +08:00
sakimisu
749369b6fc remove usb_phy_init, because hpm sdk v1.2 implement it 2023-08-25 21:35:42 +08:00
Zhihong Chen
4777a65f54 ehci: update hardcode for hpmicro
- should define CONFIG_USB_EHCI_HPMICRO and CONFIG_HPM_USB_BASE in usb_config.h

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-08-01 20:10:02 +08:00
sakumisu
fed6f26ebd fix log 2023-07-14 17:58:39 +08:00
sakumisu
c8ecf31c99 remove ununsed code 2023-07-13 20:13:51 +08:00
sakimisu
7574063e94 enum device with disposable thread, do not block hub thread 2023-07-05 22:53:13 +08:00
sakimisu
0d916af297 check if urb is null 2023-07-02 22:29:07 +08:00
sakimisu
d0d6f99c90 use DxEPCTL to check if ep is busy 2023-06-30 22:19:23 +08:00
sakimisu
faf90663a9 format code 2023-06-28 21:45:06 +08:00
sakimisu
8253f074ce implment musb usbh_kill_urb 2023-06-28 21:11:38 +08:00
sakimisu
8a93ca4bce remove dap 2023-06-25 22:38:18 +08:00
sakimisu
8968b7b3c9 update dwc2 iso transfer 2023-06-22 13:40:07 +08:00
sakimisu
822cd9d679 add dwc2 param log 2023-06-21 20:51:10 +08:00
sakumisu
66e95c9d81 remove ununsed code 2023-06-02 19:06:48 +08:00
sakimisu
b59c1c6613 check if dwc2 supports dma 2023-05-26 20:37:23 +08:00
sakimisu
dcbad9eebe comment musb reg struct 2023-05-19 15:32:07 +08:00
sakumisu
0c21844166 prevent variables being optimised 2023-05-08 20:22:04 +08:00