b5c84aa140
device/msc: only defer prepare_cbw() from STATUS_SENT when EP OUT stalled
2026-02-11 23:44:39 +07:00
697f6b313e
device/msc: skip command stage if EP out is stalled
...
Signed-off-by: Zixun LI <admin@hifiphile.com >
2026-01-26 16:11:24 +01:00
2f0a35f21a
Merge remote-tracking branch 'tinyusb/master' into copilot/fix-dcd-edpt-xfer-issue
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-11-11 14:11:20 +01:00
b83b36b354
Merge remote-tracking branch 'origin/fix-alerts-3' into fix-alerts-3
...
# Conflicts:
# src/class/cdc/cdc_device.h
# src/class/msc/msc_device.c
# src/common/tusb_debug.h
2025-11-08 00:30:22 +07:00
652342b57b
fix more alerts found by pvs-studio
2025-11-07 23:50:16 +07:00
5d351828cb
Apply suggestions from code review
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-11-07 16:31:17 +07:00
9fac6dd49d
fix more alerts found by pvs-studio
2025-11-07 16:17:13 +07:00
27415e6114
Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifo
...
- Added bool is_isr parameter to usbd_edpt_xfer() and usbd_edpt_xfer_fifo() wrapper functions
- These are called by class drivers to queue USB transfers
- Updated all callers to pass false by default (non-ISR context)
- Updated audiod_rx_xfer_isr() and audiod_tx_xfer_isr() to pass true (ISR context)
- All 21 unit tests pass
Co-authored-by: HiFiPhile <4375114+HiFiPhile@users.noreply.github.com >
2025-10-22 06:12:08 +00:00
369a1ff515
Update weak callbacks to new syntax
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-09-17 22:48:59 +02:00
f5974b041e
add bufsize to tud_msc_inquiry2_cb()
2025-08-01 22:44:32 +07:00
e9a78c52d0
add tud_msc_inquiry2_cb() for full inquiry response
2025-07-11 15:24:17 +07:00
c96cc4369f
defer proc_async_io_done()
2025-07-01 22:17:38 +07:00
216a35e59a
update example
2025-07-01 21:48:28 +07:00
d22cbe4cb5
refactor async io, add in_isr argument to tud_msc_async_io_done()
...
use cbw.command[0] for pending IO command
2025-07-01 20:13:21 +07:00
d789a87a7d
Merge branch 'master' into async_io
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-06-22 17:19:08 +02:00
b1eedf4d1d
fix iar make build with wb and u5
2025-04-17 14:40:43 +07:00
459e2cd39e
Merge remote-tracking branch 'upstream/master' into async_io
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-04-11 23:07:22 +02:00
3ffe8dbfee
fix stringop-overread warning for msc device with memmove
2025-02-07 12:48:17 +07:00
8d2310247c
Fix CI.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-02-02 14:01:15 +01:00
84f8876c7c
Use return code to choose async io.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-31 16:26:10 +01:00
cc626f35d2
msc_device: add async IO support.
...
Signed-off-by: HiFiPhile <admin@hifiphile.com >
2025-01-29 15:16:02 +01:00
453d69517b
fix multiple flag on compiling
2024-11-27 11:10:06 +07:00
090964cd1b
apply TUD_EPBUF_DEF for device: bth, dfu, hid, msc
2024-11-22 12:25:37 +07:00
f148670753
msc_device.c declare and separate epbuf from interface struct, make cbw and csw as normal variable. Also reformat code
2024-11-22 11:22:41 +07:00
fa523a5682
make sure usb buffer occupies whole cache line when DCACHE is enabled for msc,cdc,hid
...
HIL enable device DMA for p4
2024-11-21 10:22:09 +07:00
d37d25d557
Merge pull request #2532 from acscd/master
...
Added support for SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL
2024-05-08 14:48:47 +02:00
c3c0648456
add class driver deinit
2024-04-08 22:07:56 +07:00
c8805c61f9
Add files via upload
2024-03-22 20:05:52 -05:00
af3c6be79f
msc_device: Fix check for including MSC lookup tables
...
The _msc_scsi_cmd_lookup and _msc_scsi_cmd_table variables are needed
when logging is enabled for the MSC device via CFG_TUD_MSC_LOG_LEVEL.
Update the preprocessor check around them to use that definition when
deciding whether to define those variables.
Closes #2419
2024-01-20 20:19:02 -05:00
979bf32266
default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to selectively disable usbd/usbh or driver log
2023-08-02 15:34:18 +07:00
ef49b93532
rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stack
...
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-24 15:46:21 +07:00
77495cf119
improve logging, allow easier to turn off usbd, driver logging
...
can be useful when focusing on let's say usbh
2023-07-20 17:12:00 +07:00
65ac519715
Merge pull request #1852 from silvergasp/mem_s
...
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27 10:22:53 +07:00
e34aeb5cf6
minor clean up
2023-02-27 09:11:35 +07:00
498989ee00
use tu_static instead of static _fuzz_thread
2023-02-22 16:23:40 +07:00
03ec49450d
rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_thread
2023-02-22 11:47:09 +07:00
18c3095346
fix: Change all static variables to thread when fuzzing
2023-01-20 15:45:31 -08:00
2e47210c1a
fix: Replace device calls to memcpy with tu_memcpy_s
...
Introduces a new function tu_memcpy_s, which is effectively
a backport of memcpy_s. The change also refactors calls
to memcpy over to the more secure tu_memcpy_s.
2023-01-13 15:20:32 -08:00
0042eccb3b
fix redundant-decls warnings by usbd/usbh
2022-06-24 22:52:11 +07:00
4f6e770eda
add more warning option, also fix -Wconversion with rp2040
...
-Wuninitialized, -Wunused, -Wredundant-decls
2022-06-24 19:46:19 +07:00
5b7a01ba79
Merge pull request #1350 from hathach/enhance-multipl-ports
...
Enhance rhports management
2022-02-26 01:00:07 +07:00
8eeda60bd0
Set the standard inquiry response additional length field.
...
* The standard inquiry response additional length field needs to be set to
the length in bytes of the remaining standard inquiry data (i.e. N - 5),
otherwise the kernel driver issues a warning about short inquiry response..
2022-02-25 18:42:23 +02:00
d10326cb4e
rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLED
...
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-25 18:35:21 +07:00
46f4f7ff49
minor rename set sense function
2022-02-15 22:53:23 +07:00
391edc7afb
msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported command
...
LUN1 of msc_disk_dual will be set to not ready to simulate medium not
present (e.g SD card removed)
2022-02-15 22:40:08 +07:00
456c06aa5e
add tud_msc_request_sense_cb() as weak callback
...
set default error sense to NOT READY, Medium not present
2022-02-14 18:17:49 +07:00
07829510e7
Merge branch 'tannewt-rpi' into generalize-synopsys-dwc2
2021-10-26 23:43:35 +07:00
dbd31895bc
change usage of TU_CHECK_MCU() to prevent macro conflict
2021-10-25 17:04:03 +07:00
7596cb3079
update some sense warning from -Wconversion
2021-10-15 15:54:32 +07:00
d9bda631d4
Merge pull request #1120 from hathach/enhance
...
house keeping update
2021-10-01 23:31:21 +07:00