Commit Graph

74 Commits

Author SHA1 Message Date
sakumisu
249e650c37 rename CONFIG_USBDEV_MSC_BLOCK_SIZE to CONFIG_USBDEV_MSC_MAX_BUFSIZE 2024-01-06 01:07:39 +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
e795ab73a0 check and execute modeswitch first 2023-11-13 19:50:37 +08:00
sakumisu
7acb667e20 support usb modeswitch 2023-11-04 16:45:20 +08:00
Zhihong Chen
d4ba2eef57 osal: add USB_OSAL_WAITING_FOREVER for Semaphore and Queue use
- add USB_OSAL_WAITING_FOREVER for Semaphore and Queue use

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-10-12 14:38:13 +08:00
sakimisu
14f5dd2dd3 implement msc device thread,remove other unused os thread 2023-08-29 14:40:03 +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
sakumisu
d53e8a2adf add msc popup function 2023-07-11 22:17:03 +08:00
sakimisu
c540080c96 format class struct and global variable name 2023-06-21 20:43:06 +08:00
sakimisu
2d1b4b8b82 export cdc/msc/rndis/mtp mps, configured by user 2023-06-21 19:39:22 +08:00
heyuanjie87
01c6d60076 修复requestsense设定数据长度错误的问题 2023-05-19 19:57:43 +08:00
sakimisu
9172223fe6 call usbh_xxx_stop when class enumerates completely 2023-05-17 20:43:23 +08:00
sakumisu
70a22c24c7 fix print log 2023-03-16 15:12:41 +08:00
sakimisu
80f19f738c format code 2023-03-12 14:49:24 +08:00
zhouji
79f0a1989e [update] Improve the compatibility of USB flash drive enumeration。 2023-03-11 18:52:25 +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
d0890c2caf fix class get data due to 528d8dc9d6 2023-01-15 17:20:31 +08:00
sakimisu
43a45fc2fc add usb tx rx thread for device 2022-12-11 21:43:29 +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
7bcd8d0532 remove duplicate macros 2022-10-14 21:08:04 +08:00
sakumisu
212a727cbd remove irq protect when allocates devnum 2022-10-01 16:15:53 +08:00
sakumisu
2c54109425 add msc readonly feature 2022-09-25 19:47:41 +08:00
sakumisu
ebeffc5368 fix msc process in os 2022-09-25 19:43:15 +08:00
sakumisu
7fce26fb28 fix msc sector num 2022-09-17 22:00:30 +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
62d0000926 refactor usb host stack: hcd api, hub process and usb no cache ram process 2022-09-09 19:09:22 +08:00
sakumisu
cb2510f121 remove custom handler, split class handler into interface and endpoint
handler
2022-09-08 21:44:56 +08:00
sakumisu
3c94fca8d8 refactor usb device intf and ep register 2022-08-20 18:08:36 +08:00
sakumisu
523d33506d give up class register 2022-08-19 23:34:35 +08:00
sakumisu
d6ee4b8fae replace addr and len with start_sector and nsectors 2022-08-19 23:27:25 +08:00
sakumisu
7377b5183d Simplify the license rows, standardize header macro name 2022-08-18 21:41:19 +08:00
sakumisu
54c52944d2 remove comments to reduce rows 2022-08-17 20:12:37 +08:00
sakumisu
628ee1f74d add mount callback for device, move tests in mount callback 2022-08-12 21:35:17 +08:00
sakumisu
b835c9ccd2 add nocache ram config when enable dcache 2022-07-31 18:40:45 +08:00
sakumisu
f1bc0aef04 refactor dcd api and ep in/out irq callback process 2022-07-28 21:35:22 +08:00
sakumisu
e922b589f8 fix warnings 2022-06-15 22:14:53 +08:00
sakumisu
b815a11255 remove & 2022-06-07 22:09:32 +08:00
sakumisu
56364f2903 alloc class name after the necessary commands are completed 2022-05-22 17:09:47 +08:00
sakumisu
d4fd7c5e81 complete msc device with os 2022-05-21 13:43:57 +08:00
sakumisu
42ae5b1b74 add thread process for msc device 2022-05-15 19:13:27 +08:00
sakumisu
e131eaf5d1 add custom msc inquiry info 2022-04-11 09:59:53 +08:00
sakumisu
a5ee5b4152 Standardized function parameter with xxx_class 2022-04-04 15:37:14 +08:00
sakumisu
c1f6b86bcf add class driver export macro control 2022-04-04 13:11:44 +08:00
xieyangrun
322964f598 fixed osal critical section protect adapt 64bits CPU. 2022-03-31 18:40:11 +08:00
aozima
3cce9e7d78 clean compiler warning. 2022-03-27 14:58:25 +08:00
jzlv
563888ec14 update class driver info,support class driver export 2022-03-23 17:30:53 +08:00