204 Commits

Author SHA1 Message Date
sakumisu
ac6db49d00 fix(core/usbh_core): return valid hport which is connected
Signed-off-by: sakumisu <1203593632@qq.com>
2025-02-07 20:15:08 +08:00
sakumisu
e592a548e9 feat(core/usbd_core): add ep0 setup handler into thread feature 2025-02-01 14:45:02 +08:00
sakumisu
fd033f25c5 feat(core/usbh_core): add usbh_printf_setup api for debug
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-25 19:08:15 +08:00
sakumisu
99e2e6bfd4 feat(core/otg): add otg framework
Signed-off-by: sakumisu <1203593632@qq.com>
2025-01-15 17:11:27 +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
1be34f4d36 fix(core/usbd_core): fix ep config for more eps when call usbd_set_interface 2024-12-28 16:43:19 +08:00
yangpeng
e6801fcbb8 修复VID/PID匹配逻辑 2024-12-20 16:37:59 +08:00
sakumisu
886f1ec6b4 fix warning 2024-12-09 20:53:02 +08:00
sakumisu
a72ecd2202 update: change memcpy to fast memcpy 2024-11-24 23:04:27 +08:00
sakumisu
a13bee0663 feat(core/usbh_core): add usbh_find_hubport api 2024-10-31 21:45:19 +08:00
sakumisu
77136aa743 update(core/usbd_core): implement USB_REQUEST_GET_INTERFACE request, refs:#268 2024-10-30 22:19:14 +08:00
sakumisu
4784017f56 chore: update comment 2024-10-30 21:04:06 +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
0d65bbc6ba fix(core/usbd_core): reset endpoint only for altsetting 0, refs:#258 2024-09-27 19:02:28 +08:00
sakumisu
02340e0f44 chore: static code analysis 2024-09-19 09:50:18 +08:00
CCHhui
171b36e766 fix(core/usbh_core): Fix raw_config_desc heap out of bounds 2024-09-16 22:48:35 +08:00
sakumisu
a139a70782 update(usbh_core): add terminate char for raw_config_desc 2024-09-07 22:43:43 +08:00
Zhihong Chen
f5ce56990c usbd_core: add usb_device_is_suspend() API
- add usb_device_is_suspend() API

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-08-26 11:10:28 +08:00
sakumisu
b045a1d490
fix(core/usbh_core.c): fix error name 2024-08-24 15:53:19 +08:00
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +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
LiPeng
dfc90da28a Fix the bug that USBD_EVENT_DEINIT was not notified correctly 2024-08-06 14:10:07 +08:00
sakumisu
564d568732 fix(core/usbd_core): fix self powered check 2024-07-30 17:46:02 +08:00
sakumisu
bef45dc360 feat(port): add remote wakeup api 2024-07-26 22:02:01 +08:00
sakumisu
50b62c946d feat(core/usbd_core): support webusb 2024-07-25 21:39:36 +08:00
sakumisu
1c2fd3407a refactor(osal): use osal malloc and free, remove usb_malloc & usb_free macro 2024-07-23 19:37:54 +08:00
sakumisu
1a9c1481f4 feat(core/usbd_core): support get hid desc request(0x21), support get status for remote wakeup & self powered 2024-07-11 13:58:16 +08:00
sakumisu
7fab3c29f0 feat(port): implement usbd_ep_is_stalled api 2024-07-08 21:54:39 +08:00
sakumisu
e4b56cee89 update(hub): update hub macros and hub params for usb3.0 2024-07-07 12:07:12 +08:00
sakumisu
69fe1598ed update(core/usbd_core): increase intf array from 8 to 16 2024-06-23 13:50:23 +08:00
sakumisu
10437a7d13 update(core/usbh_core): do not use slist, we use recursion 2024-06-22 15:44:09 +08:00
sakumisu
5d87a750ac fix(core/usbh_core): fix missing free devaddr caused by 935325 2024-06-17 18:37:22 +08:00
sakumisu
b4d54d2aa6 fix(core/usbh_core): fix get mult 2024-06-16 18:11:04 +08:00
sakumisu
bf8e092627 remove print log for device, because we do not allow printf in isr 2024-06-14 10:02:12 +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
5dafdcb895 fix warning 2024-05-21 10:10:31 +08:00
sakumisu
66b893e64f update: add langid in string desc 2024-05-17 22:18:21 +08:00
sakumisu
13e4670f3d update: remove internal configs, you should get config from usb_config.h 2024-05-17 17:04:53 +08:00
sakumisu
af92236cf4 refactor(core/usbd_core): process string internal, you can use like \"cherryusb\" now 2024-05-16 11:19:58 +08:00
sakumisu
9657585f1f update(core/usbh_core): remove ununsed urb memset 2024-05-15 09:57:21 +08:00
sakumisu
775ac135de bugfix by ccef9b92 2024-05-10 11:36:17 +08:00
sakumisu
7ebcafe158 adjust code order 2024-05-03 18:57:09 +08:00
sakumisu
5fec929b93 support id table for multi vid pid 2024-05-03 18:54:36 +08:00
sakumisu
4bf0e126af move usbh_hubport_release api to core 2024-05-03 18:00:59 +08:00
sakumisu
ccef9b92cc bugfix for 183d49, add CONFIG_USBDEV_EP0_INDATA_NO_COPY 2024-05-03 14:07:26 +08:00
Zhihong Chen
9cb992bed7 add USB_DEVICE_QUALIFIER_DESCRIPTOR_INIT and USB_OTHER_SPEED_CONFIG_DESCRIPTOR_INIT macros
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-04-30 20:05:57 +08:00
sakumisu
183d49efbd copy data into ep0 buffer at a unified location 2024-04-30 14:21:31 +08:00
sakumisu
2f5f2b906f add usbd_get_ep_mult api 2024-04-29 14:11:24 +08:00