summaryrefslogtreecommitdiff
path: root/src/class/msc/msc_device.c
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-06-24cap tud_msc_scsi_cb bufsize to endpoint buffer sizedxbjavid
2026-02-11device/msc: only defer prepare_cbw() from STATUS_SENT when EP OUT stalledhathach
2026-01-26device/msc: skip command stage if EP out is stalledZixun LI
Signed-off-by: Zixun LI <[email protected]>
2025-11-11Merge remote-tracking branch 'tinyusb/master' into ↵HiFiPhile
copilot/fix-dcd-edpt-xfer-issue Signed-off-by: HiFiPhile <[email protected]>
2025-11-08Merge remote-tracking branch 'origin/fix-alerts-3' into fix-alerts-3hathach
# Conflicts: # src/class/cdc/cdc_device.h # src/class/msc/msc_device.c # src/common/tusb_debug.h
2025-11-07fix more alerts found by pvs-studiohathach
2025-11-07Apply suggestions from code reviewHa Thach
Co-authored-by: Copilot <[email protected]>
2025-11-07fix more alerts found by pvs-studiohathach
2025-10-22Add is_isr parameter to usbd_edpt_xfer and usbd_edpt_xfer_fifocopilot-swe-agent[bot]
- 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 <[email protected]>
2025-09-17Update weak callbacks to new syntaxHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-08-01add bufsize to tud_msc_inquiry2_cb()hathach
2025-07-11add tud_msc_inquiry2_cb() for full inquiry responsehathach
2025-07-01defer proc_async_io_done()hathach
2025-07-01update examplehathach
2025-07-01refactor async io, add in_isr argument to tud_msc_async_io_done()hathach
use cbw.command[0] for pending IO command
2025-06-22Merge branch 'master' into async_ioHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-04-17fix iar make build with wb and u5hathach
2025-04-11Merge remote-tracking branch 'upstream/master' into async_ioHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-02-07fix stringop-overread warning for msc device with memmovehathach
2025-02-02Fix CI.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-01-31Use return code to choose async io.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-01-29msc_device: add async IO support.HiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2024-11-27fix multiple flag on compilinghathach
2024-11-22apply TUD_EPBUF_DEF for device: bth, dfu, hid, mschathach
2024-11-22msc_device.c declare and separate epbuf from interface struct, make cbw and ↵hathach
csw as normal variable. Also reformat code
2024-11-21make sure usb buffer occupies whole cache line when DCACHE is enabled for ↵hathach
msc,cdc,hid HIL enable device DMA for p4
2024-05-08Merge pull request #2532 from acscd/masterHiFiPhile
Added support for SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL
2024-04-08add class driver deinithathach
2024-03-22Add files via uploadacscd
2024-01-20msc_device: Fix check for including MSC lookup tablesJonathan Zentgraf
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
2023-08-02default class driver log level to CFG_TUH/TUD_LOG_LEVEL allow application to ↵hathach
selectively disable usbd/usbh or driver log
2023-07-24rename CFG_TUSB_MEM_SECTION to CFG_TUD_MEM_SECTION in device stackhathach
CFG_TUD_MEM_SECTION is default to CFG_TUSB_MEM_SECTION
2023-07-20improve logging, allow easier to turn off usbd, driver logginghathach
can be useful when focusing on let's say usbh
2023-02-27Merge pull request #1852 from silvergasp/mem_sHa Thach
fix: Replace device calls to memcpy with tu_memcpy_s
2023-02-27minor clean uphathach
2023-02-22use tu_static instead of static _fuzz_threadhathach
2023-02-22rename maros from FUZZ to _FUZZ, change TU_STATIC to static _fuzz_threadhathach
2023-01-20fix: Change all static variables to thread when fuzzingNathaniel Brough
2023-01-13fix: Replace device calls to memcpy with tu_memcpy_sNathaniel Brough
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.
2022-06-24fix redundant-decls warnings by usbd/usbhhathach
2022-06-24add more warning option, also fix -Wconversion with rp2040hathach
-Wuninitialized, -Wunused, -Wredundant-decls
2022-02-26Merge pull request #1350 from hathach/enhance-multipl-portsHa Thach
Enhance rhports management
2022-02-25Set the standard inquiry response additional length field.iabdalkader
* 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-25rename TUSB_OPT_DEVICE_ENABLED to CFG_TUD_ENABLEDhathach
TUSB_OPT_DEVICE_ENABLED still usable for backward compatible
2022-02-15minor rename set sense functionhathach
2022-02-15msc example response PREVENT_ALLOW_MEDIUM_REMOVAL command as unsupported commandhathach
LUN1 of msc_disk_dual will be set to not ready to simulate medium not present (e.g SD card removed)
2022-02-14add tud_msc_request_sense_cb() as weak callbackhathach
set default error sense to NOT READY, Medium not present
2021-10-26Merge branch 'tannewt-rpi' into generalize-synopsys-dwc2hathach
2021-10-25change usage of TU_CHECK_MCU() to prevent macro conflicthathach