Commit Graph

48 Commits

Author SHA1 Message Date
sakumisu
fbe2e3f8a3 fix(class/msc/usbd_msc): fix missing return value 2024-09-02 18:54:11 +08:00
sakumisu
35da8d6747 fix: fix -Wunused-parameter warning with -Wextra cflag 2024-08-21 20:08:47 +08:00
sakumisu
cbd6955bde fix(class/msc/usbd_msc): fix spelling 2024-08-08 18:11:23 +08:00
sakumisu
b4bbe69d12 feat(class/msc/usbd_msc): add msc polling mode to move read & write from isr to while1 2024-08-08 18:03:30 +08:00
Zhihong Chen
756987050f class: msc: stage change should be before usbd_ep_start_write()
- stage change should be before usbd_ep_start_write()

Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2024-02-23 10:42:53 +08:00
sakumisu
d1c7fa8c19 support multi port api for device 2024-02-06 19:52:22 +08:00
Zhihong Chen
920b02cb7c class: msc device: support multi lun
- support multi lun

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
249e650c37 rename CONFIG_USBDEV_MSC_BLOCK_SIZE to CONFIG_USBDEV_MSC_MAX_BUFSIZE 2024-01-06 01:07:39 +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
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
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
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
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
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
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
b815a11255 remove & 2022-06-07 22:09:32 +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
1526766816 move buffer malloc in init 2022-03-17 16:39:41 +08:00
sakumisu
7bdb032805 fix msc buffer alloc when memset usbd_msc_cfg 2022-03-11 21:36:10 +08:00
sakumisu
dddd4e4c3c gdd memory align32 for variable in structure 2022-02-24 12:28:51 +08:00
sakumisu
ae5c691587 add static to embelish request handler 2022-02-12 18:49:06 +08:00
jzlv
e63b2ce974 update msc scsi macro 2022-02-09 15:22:28 +08:00
sakimisu
1edbae8e07 format codes 2022-02-08 11:44:46 +08:00
sakumisu
c5bfeed867 update license 2022-01-15 17:13:57 +08:00
sakumisu
95f3b81cfd add usb debug level control and color display 2022-01-15 17:07:54 +08:00
sakumisu
89c0714fd4 optimise out data read for cbw and process_write 2022-01-15 17:03:09 +08:00
sakumisu
c3cc88d95f fix doxygen user name 2021-12-04 14:39:35 +08:00
sakumisu
636b30c3d8 refactor usb class structure 2021-11-29 10:32:05 +08:00
sakumisu
5a22e7a57b modify print log,add USBD_LOG_INFO forever print 2021-11-14 21:14:51 +08:00
sakumisu
27bbaa0e0e update sense code for processwrite and processread 2021-11-09 14:36:43 +08:00
sakumisu
7e207b70e2 refactor msc scsi process 2021-11-09 10:28:34 +08:00
sakumisu
0672902d62 add usb hs support,add bos and msosv2 descriptor register 2021-09-28 10:51:20 +08:00
jzlv
8a143df509 first commit 2021-07-10 18:31:58 +08:00