sakumisu
08d1ce4ab5
style(class): remove device warning logs for memory
...
Signed-off-by: sakumisu <1203593632@qq.com >
2026-02-03 21:04:14 +08:00
Derek Konigsberg
7c38af1b04
Clear error code after intentionally ignoring it
...
In the case of handling a stall on a max lun request, we need to clear the error code in `ret` after ignoring it. This is necessary so the connect function won't fail.
Fix #339
2025-07-19 09:20:49 +08:00
sakumisu
605a967282
style: remove some logs
...
Signed-off-by: sakumisu <1203593632@qq.com >
2025-07-16 22:17:19 +08:00
KK
5e890a078f
msc: add support for SCSI_CMD_SYNCHCACHE10 (0x35) to fix unsupported command error
2025-06-17 16:18:03 +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
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
e0fedaa956
refactor(class/usbd_msc): replace cherryrb with only variable
...
Signed-off-by: sakumisu <1203593632@qq.com >
2025-04-22 14:59:32 +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
c827c2e50b
update(class/msc/usbh_msc): move msc scsi commands out to prevent blocking enum thread
...
Signed-off-by: sakumisu <1203593632@qq.com >
2025-01-26 12:50:48 +08:00
sakumisu
6769eac6e0
feat(osal): add argument macro for different os, especially for nuttx
...
Signed-off-by: sakumisu <1203593632@qq.com >
2025-01-20 18:23:59 +08:00
sakumisu
6c3b828e77
update(class/msc/usbh_msc): add retry macro
...
Signed-off-by: sakumisu <1203593632@qq.com >
2025-01-16 16:49:58 +08:00
chenzhihong007
5b74cecc4a
[update] class: msc host: update msc host class stack ( #285 )
...
- use CONFIG_USBHOST_MSC_TIMEOUT as inquiry timeout
- separate cbw/csw from g_msc_buf
- try again ready check when device not ready
- print errcode in error log
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com >
2025-01-16 10:48:11 +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
2b6eebcbb2
fix(class/msc/usbh_msc): when device stalls by usbh_msc_get_maxlun, ingore error and set lun=0, refs:#259
2024-09-27 19:03:33 +08:00
sakumisu
68bf529608
fix(class/msc/usbd_msc): fix warning and add check for CONFIG_USBDEV_MSC_MAX_BUFSIZE
2024-09-19 20:25:11 +08:00
sakumisu
02340e0f44
chore: static code analysis
2024-09-19 09:50:18 +08:00
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
393756f111
fix(class): use different buffer for cdc_acm,hid,msc,serial
2024-08-15 17:34:02 +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
sakumisu
dc0070b054
update(class/msc/usbh_msc): add MSC_INQUIRY_TIMEOUT to break quickly in inquiry stage
2024-06-23 14:46:50 +08:00
sakumisu
755d067650
update: check class->hport validity
2024-06-23 14:16:57 +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
4da3550582
fix msc buf overflow because of SCSICMD_INQUIRY_SIZEOF
2024-03-28 20:42:31 +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
eeb304ae08
update log tag
2024-01-30 23:04:35 +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
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