Commit Graph

81 Commits

Author SHA1 Message Date
sakumisu
6c239e175f feat(class/video/usbh_video): support bulk mode
Signed-off-by: sakumisu <1203593632@qq.com>
2025-10-09 21:30:56 +08:00
sakumisu
bff8a632a9 feat(class): add usb_osal_thread_schedule_other to allow the applications which use the struct usbh_xxx to exit properly before free struct usbh_xxx
Signed-off-by: sakumisu <1203593632@qq.com>
2025-06-03 22:43:35 +08:00
sakumisu
8a81d81435 update(class/video): change headerlen to 12 for 4 byte align, fix encoding
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-29 10:47:10 +08:00
sakumisu
e6d81344c3 refactor(class/video/usbd_video): zero copy for video data transfer
Signed-off-by: sakumisu <1203593632@qq.com>
2025-05-28 17:34:44 +08:00
sakumisu
8aad86f66b update(class): add weak api to avoid undefine symbol(not use such class but add)
Signed-off-by: sakumisu <1203593632@qq.com>
2025-04-28 21:32:19 +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
Zhihong Chen
82a0d243f8 usbd_video: use pingpang buffer to improve tx performance
- use pingpang buffer to improve tx performance

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-11-25 16:55:28 +08:00
sakumisu
a72ecd2202 update: change memcpy to fast memcpy 2024-11-24 23:04:27 +08:00
sakumisu
6517919bd2 refactor(class/video/usbd_video): refactor video stream transfer, support n frames in one transfer 2024-11-16 22:35:58 +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
65151b9534 feat(class/video/usbd_video): add usbd_video_stream_start_write api for video split tranfer, every transfer with one ep_mps 2024-10-18 17:18:51 +08:00
sakumisu
02340e0f44 chore: static code analysis 2024-09-19 09:50:18 +08:00
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +08:00
sakumisu
c377ebfc61 update(class/video/usbd_video): make payload fill api common 2024-06-23 22:46:51 +08:00
sakumisu
755d067650 update: check class->hport validity 2024-06-23 14:16:57 +08:00
yjun
7a26ad5082 update(class/video): add xu descriptor definition 2024-06-17 22:24:13 +08:00
yjun
ff2070d14b fix(class/video): vc header descriptor definition 2024-06-17 22:24:13 +08:00
sakumisu
556bf91879 fix(class/video/usb_video): fix missing bDescriptorSubType in vc header descriptor 2024-06-17 18:37:31 +08:00
sakumisu
96db9b96da update h264 macro 2024-06-16 16:08:01 +08:00
sakumisu
afa77ec20b update(video): add more video desc macros, like h264, yuv, add vc endpoint to choose, add yuv template 2024-06-15 17:54:56 +08:00
sakumisu
3cf2d6da31 fix warning 2024-06-14 22:17:16 +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
5fec929b93 support id table for multi vid pid 2024-05-03 18:54:36 +08:00
sakumisu
23e2787a43 add user_data param in host class for users 2024-04-24 22:40:55 +08:00
sakumisu
c1cb6e397b move queue files 2024-04-11 10:14:43 +08:00
sakumisu
c8be4d6fd3 change INFO to RAW 2024-04-07 23:31:04 +08:00
sakumisu
725d635c76 add cherryrb and cherry pool 2024-04-07 23:30:51 +08:00
sakumisu
d1c7fa8c19 support multi port api for device 2024-02-06 19:52:22 +08:00
sakumisu
eeb304ae08 update log tag 2024-01-30 23:04:35 +08:00
sakumisu
14f1f597f1 add usb errno, do not use system errno 2023-12-05 21:34:32 +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
5e689dfe15 fix class api name 2023-11-13 19:50:04 +08:00
sakumisu
7c1fae04b2 fix video packet caculation 2023-08-30 17:43:13 +08:00
sakimisu
1a7259649b standardize video control api 2023-08-25 21:36:27 +08:00
sakimisu
c8b832e1a0 fix function name 2023-08-05 11:08:24 +08:00
sakimisu
3057f41020 use static memory to malloc & free class 2023-07-12 22:48:18 +08:00
sakimisu
2ca22deaad remove unused code 2023-06-21 23:30:44 +08:00
sakimisu
c540080c96 format class struct and global variable name 2023-06-21 20:43:06 +08:00
sakimisu
9172223fe6 call usbh_xxx_stop when class enumerates completely 2023-05-17 20:43:23 +08:00
sakumisu
9c5af19cb1 remove unused functions 2023-03-22 14:57:47 +08:00
sakimisu
854e633808 move variables into no cache 2023-03-12 14:53:04 +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
3fa3f3e356 do not check if device is closed 2023-02-07 22:54:51 +08:00
sakumisu
af88c8e90b config ep pipe after set_interface 2023-02-05 14:38:14 +08:00
sakimisu
e1585f801c reset pipe and is_opened before set_interface cmd 2023-01-03 22:20:57 +08:00
sakimisu
f45e0f47fa rename class info name 2022-12-31 15:55:07 +08:00
sakimisu
27ff38f745 update video driver 2022-12-31 14:10:27 +08:00
sakimisu
512de54d33 add host class run and stop callback 2022-11-26 23:52:58 +08:00
sakumisu
dca8b4cfed remove intf malloc 2022-10-20 21:22:08 +08:00
sakumisu
2890c03eec list all video altsettings 2022-10-07 14:56:20 +08:00