Commit Graph

116 Commits

Author SHA1 Message Date
sakumisu
dd46b8ce39 feat: support custom ep0 mps
Signed-off-by: sakumisu <1203593632@qq.com>
2025-10-22 20:34:22 +08:00
sakumisu
605a967282 style: remove some logs
Signed-off-by: sakumisu <1203593632@qq.com>
2025-07-16 22:17:19 +08:00
sakumisu
064507bfe8 update(core/usbd_core): add ep0 state log
Signed-off-by: sakumisu <1203593632@qq.com>
2025-07-13 17:17:38 +08:00
sakumisu
22e150a8e6 refactor(port/dwc2): support custom config for each dwc2 usb port
Signed-off-by: sakumisu <1203593632@qq.com>
2025-07-05 16:39:54 +08:00
sakumisu
b4fb10ee98 update(core/usbd_core): clear configuration in disconnect callback
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-27 20:34:18 +08:00
sakumisu
684041f285 fix(core/usbd_core): add check for desc callback
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-13 14:42:18 +08:00
sakumisu
336aa91d24 update(port): add sof support
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-10 21:26:53 +08:00
sakumisu
d10b88c1a1 feat(core/usbd_core): add ep0_next_state to record control transfer state
Signed-off-by: sakumisu <1203593632@qq.com>
2025-04-21 18:23:30 +08:00
sakumisu
9a26c50900 fix: fix wformat warnings
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-28 22:39:30 +08:00
sakumisu
83695e77cf update: add usb align up for every buffer when use dcache clean&invalid api
Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-28 13:29:04 +08:00
sakumisu
e581097309 fix(core/usbd_core): fix two bugs
- fix current_desc_len += p[DESC_bLength] before p+= p[DESC_bLength]
- fix reset all eps when alt_setting=0

Signed-off-by: sakumisu <1203593632@qq.com>
2025-03-04 17:13:02 +08:00
sakumisu
23d2327a52 fix(core/usbd_core): fix return with break in ep0 thread
Signed-off-by: sakumisu <1203593632@qq.com>
2025-02-12 13:01:12 +08:00
sakumisu
e592a548e9 feat(core/usbd_core): add ep0 setup handler into thread feature 2025-02-01 14:45:02 +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
sakumisu
a72ecd2202 update: change memcpy to fast memcpy 2024-11-24 23:04:27 +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
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
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
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +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
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
69fe1598ed update(core/usbd_core): increase intf array from 8 to 16 2024-06-23 13:50:23 +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
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
775ac135de bugfix by ccef9b92 2024-05-10 11:36:17 +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
sakumisu
45e9a2fde8 add usbd_get_ep_mps api 2024-04-29 11:32:54 +08:00
sakumisu
5b72907f6d simplify code for get device qualifier desc 2024-04-29 11:29:52 +08:00
sakumisu
694b201ff7 move get speed before get device desc 2024-04-25 21:11:55 +08:00
sakumisu
8625e4409e support speed get in when enables CONFIG_USBDEV_ADVANCE_DESC 2024-04-24 22:10:47 +08:00
Zhihong Chen
bba4b46fa4 update usb test mode
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-03-13 19:25:07 +08:00
Zhihong Chen
4803a6826b update endpoint number usage and fix busid check
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-02-19 20:19:48 +08:00
sakumisu
e0551b3e7b config busid and regbase in usbh_initialize and usbd_initialize 2024-02-18 21:15:04 +08:00
sakumisu
d1c7fa8c19 support multi port api for device 2024-02-06 19:52:22 +08:00
Zhihong Chen
3f89d1b003 usbd: change endpoint number from 8 to 16
- Because the maximum number of endpoints specified in the USB protocol is 16, and some vendors support 16 endpoints

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-02-06 18:31:47 +08:00
sakumisu
0f5e05052f add usbd init and deinit event macro 2024-01-16 22:50:48 +08:00
sakumisu
44e9c1cf4f register desc with callback when enable CONFIG_USBDEV_ADVANCE_DESC 2023-12-20 20:24:47 +08:00