Commit Graph

60 Commits

Author SHA1 Message Date
sakumisu
3e28c528a4 update(class/hub): remove hport sources safely
Signed-off-by: sakumisu <1203593632@qq.com>
2025-11-28 11:45:20 +08:00
sakumisu
e10b44f64e feat(core/usbh_core): support custom config index
Signed-off-by: sakumisu <1203593632@qq.com>
2025-11-27 22:43:56 +08:00
sakumisu
449ea2664e feat(core/usbh_core): support interfacenum match flag
Signed-off-by: sakumisu <1203593632@qq.com>
2025-11-20 22:49:41 +08:00
Egahp
5d5b61a606 feat: host add event callback mechanism similar to device
* fix: fix warning for speed_table
* fix(port/dwc2/usb_hc_dwc2): add roothub.speed init
* feat(usbh_core): add event_callback
* fix(usbh_hub): fix event device reset port
* fix(usbh_hub): remove event init when init failed
* feat(usbh_core): add default dummy_event_callback
* fix(usbh_hub): emit reset event only on successful reset
* fix(usbh_core): emit interface start only on successful connect class driver
* feat(usbh_core): change event_callback to typedef
* feat(port): update port usbh init params
* doc: update usbh_initialize desc
* fix(usbh_core): check result from ret == 0 change to ret >= 0
---------

Signed-off-by: egahp <2687434412@qq.com>
2025-08-30 19:24:02 +08:00
sakumisu
5130d22766 refactor(core/usbh_core): refactor devaddr allocation, use auto increment
Signed-off-by: sakumisu <1203593632@qq.com>
2025-08-27 21:19:43 +08:00
sakumisu
ecb98f399d update: add output_len param for usbh_get_string_desc
Signed-off-by: sakumisu <1203593632@qq.com>
2025-07-25 22:37:25 +08:00
sakumisu
832e4c45fb fix(class/hub): change urb interval unit to us
Signed-off-by: sakumisu <1203593632@qq.com>
2025-07-01 21:21:59 +08:00
sakumisu
1a1b475523 update(port): add ehci/ohci/dwc2 dcache support
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-15 17:09:22 +08:00
sakumisu
a13bee0663 feat(core/usbh_core): add usbh_find_hubport api 2024-10-31 21:45:19 +08:00
electretmike
149fb046bc fix: rename class to class_code, for c++ compatibility (#269)
Co-authored-by: Michiel van Leeuwen <michiel@embeddedacoustics.com>
2024-10-30 15:11:46 +08:00
sakumisu
143a5ce3fd refactor: move CHERRYUSB_VERSION and CHERRYUSB_VERSION_STR into usb_version.h 2024-08-16 14:16:45 +08:00
zhugengyu
18d9c21553 Add PUSB2 and XHCI driver and RTOS glue (#236) 2024-08-09 22:43:22 +08:00
sakumisu
e4b56cee89 update(hub): update hub macros and hub params for usb3.0 2024-07-07 12:07:12 +08:00
sakumisu
10437a7d13 update(core/usbh_core): do not use slist, we use recursion 2024-06-22 15:44:09 +08:00
sakumisu
b4d54d2aa6 fix(core/usbh_core): fix get mult 2024-06-16 18:11:04 +08:00
sakumisu
935325175f remove old xhci patch 2024-06-07 21:51:33 +08:00
sakumisu
2d63b52d0b feat: use fast memcpy for net 2024-05-31 22:31:43 +08:00
sakumisu
5fec929b93 support id table for multi vid pid 2024-05-03 18:54:36 +08:00
Zhihong Chen
9145add9af core: host: add "." to section usbh_class_info for IAR
- add "." to section usbh_class_info for IAR

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-03-18 19:20:30 +08:00
sakumisu
2660af5d87 add timer to control interrupt transfer 2024-03-14 19:31:52 +08:00
sakumisu
e0551b3e7b config busid and regbase in usbh_initialize and usbd_initialize 2024-02-18 21:15:04 +08:00
Zhihong Chen
6bc6b06076 usbh_core: add iar risc-v support
- add iar risc-v support

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-01-14 17:00:40 +08:00
sakumisu
1158fc3d8c support multi USB IP for host 2024-01-08 22:47:28 +08:00
sakumisu
f68a86ea89 add usbh_deinitialize api 2023-12-24 23:37:47 +08:00
sakumisu
50e1cd3471 add mutex for ep0 urb to avoid multithreading 2023-11-22 21:44:51 +08:00
sakumisu
9ea2121c7c make hub_set_feature and hub_clear_feature api public 2023-11-20 22:15:43 +08:00
sakumisu
73eb69bfa2 remove usb_mem.h 2023-11-17 21:05:31 +08:00
sakumisu
a08097c90e use static urb for ep0 2023-11-17 21:05:07 +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
sakumisu
2080cf1206 add usbh_set_interface api 2023-11-11 14:00:29 +08:00
sakumisu
c37c60c7c7 add usbh_get_string_desc api 2023-11-04 15:24:15 +08:00
sakimisu
7574063e94 enum device with disposable thread, do not block hub thread 2023-07-05 22:53:13 +08:00
sakimisu
5657b2a028 update hub process for usb3.0, update xhci driver 2023-04-21 23:43:59 +08:00
sakimisu
cc4ed56a88 format code 2023-02-18 19:20:35 +08:00
sakumisu
75ddfc8e4d move hub and hport variable into common ram to reduce nocache ram usage 2023-02-18 15:19:52 +08:00
sakimisu
921ed9b697 Revert "check if hport is null"
This reverts commit 63bc4e9363.
2023-02-09 21:13:12 +08:00
sakumisu
63bc4e9363 check if hport is null 2023-02-05 14:39:08 +08:00
biyq
9bcea9ae37 1. support for iar in situation of usb host application 2022-12-15 20:19:42 +08:00
sakimisu
843af28b2b update hub thread wakeup with queue not sem&list 2022-12-11 20:27:18 +08:00
sakimisu
61e82e0eeb remove device mount and unmount callback 2022-11-21 21:59:37 +08:00
sakumisu
ee026096b1 remove bulk_transfer and intr_transfer 2022-10-07 21:44:43 +08:00
sakumisu
85c0f658da fix pipe param type in usbh_hport_activate_epx 2022-09-27 19:34:24 +08:00
sakumisu
bd40ff0660 record raw config descriptors 2022-09-23 22:13:40 +08:00
sakumisu
09c6f2b655 add urb for msc class 2022-09-15 20:46:14 +08:00
sakumisu
b25b0f0b6c add interface altsetting struct 2022-09-14 20:33:13 +08:00
sakumisu
7990ee9747 complete hub intr transfer 2022-09-09 22:18:02 +08:00
sakumisu
62d0000926 refactor usb host stack: hcd api, hub process and usb no cache ram process 2022-09-09 19:09:22 +08:00
sakumisu
de5ca1313a revert dot in keil 2022-09-01 22:04:24 +08:00
sakumisu
7377b5183d Simplify the license rows, standardize header macro name 2022-08-18 21:41:19 +08:00
sakumisu
0bbced8733 update usbh_class info section 2022-08-12 23:26:40 +08:00