Commit Graph

56 Commits

Author SHA1 Message Date
hathach
c96cc4369f defer proc_async_io_done() 2025-07-01 22:17:38 +07:00
hathach
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
HiFiPhile
84f8876c7c Use return code to choose async io.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-31 16:26:10 +01:00
HiFiPhile
cc626f35d2 msc_device: add async IO support.
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2025-01-29 15:16:02 +01:00
HiFiPhile
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
hathach
c3c0648456 add class driver deinit 2024-04-08 22:07:56 +07:00
acscd
c8805c61f9 Add files via upload 2024-03-22 20:05:52 -05:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
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
hathach
9394de6ae7 update msc driver to pass MSC BOT error recovery compliant test 2021-08-27 12:38:41 +07:00
hathach
9736e54734 include clean up 2021-05-27 17:40:39 +07:00
hathach
dd07fecc5f migrate cdc_device to new control_xfer_cb 2020-11-19 21:26:06 +07:00
hathach
3c31d08051 merge class driver control_request & control_complete to control_xfer_cb()
migrated msc_device
2020-11-19 21:01:33 +07:00
hathach
881025afdc add new name warning to cdc and midi (skip msc, hid warning for now) 2020-07-17 23:01:39 +07:00
hathach
5ca748a68e rename CFG_TUD_MSC_BUFSIZE to CFG_TUD_MSC_EP_BUFSIZE
rename CFG_TUD_HID_BUFSIZE to CFG_TUD_HID_EP_BUFSIZE
2020-07-16 15:34:16 +07:00
hathach
e340404968 changing usbd driver open() return type, add max_len
only done with cdc and msc, push this interim for feedback first
2020-05-27 19:01:59 +07:00
Nathan Conrad
25c1bea782 Normalize line endings 2020-01-15 14:47:43 -05:00
hathach
56b656c768 Merge branch 'master' into develop 2019-07-24 17:08:19 +07:00
hathach
1ee9ef4f2b change tud_msc_start_stop_cb() to return void -> bool 2019-07-24 16:19:12 +07:00
hathach
33de35504a more house keeping 2019-07-19 20:20:13 +07:00
hathach
cb4e6837e9 clean up, rename internal driver control_request_complete to simply control_complete 2019-07-12 22:03:40 +07:00
hathach
13e01c7dca add TU_ prefix to compiler ATTR to prevent name conflict with application 2019-06-06 10:39:37 +07:00
hathach
61ec407752 update license year to 2019 2019-05-14 11:48:05 +07:00
hathach
81cb1c9510 clean up 2019-05-07 00:03:42 +07:00
hathach
6e4dc2f23d adding msc Start Stop to buitin command, but not complate yet
add tud_msc_start_stop_cb() as optional callback
2019-05-06 16:48:50 +07:00
hathach
efefbd3a4e add Test Unit Ready to builtin command, add tud_msc_test_unit_ready_cb()
- rename tud_msc_maxlun_cb to tud_msc_get_maxlun_cb
2019-05-06 15:01:38 +07:00
hathach
fae9aba68f add tud_msc_inquiry_cb() remove CFG_TUD_MSC_VENDOR/PRODUCT/PRODUCT_REV 2019-05-03 23:46:01 +07:00
hathach
a25ca701cd text clean up 2019-05-01 23:26:52 +07:00
hathach
b74eca4f12 add msc multiple lun support
- remove CFG_TUD_MSC_MAXLUN
- add tud_msc_maxlun_cb()
- add msc_dual_lun exmaple
2019-04-26 15:54:42 +07:00
hathach
ff8fe28c98 move interface descriptor template to usbd.h, update exmaple 2019-04-19 13:16:06 +07:00
hathach
307ba23046 wrap up hid device refactor 2019-04-18 22:31:35 +07:00
hathach
516964b3d3 add interface descriptor template 2019-04-17 13:43:07 +07:00
hathach
6102183193 clean up 2019-04-11 00:22:18 +07:00
hathach
c09d754654 remove tud_msc_ready() 2019-03-27 23:47:59 +07:00
hathach
da452d4ba6 cleanup, remove the use of _TINY_USB_SOURCE_FILE_ 2019-03-27 17:48:42 +07:00
hathach
c211ee19dd migrate license from BSD 3 clause to MIT 2019-03-20 16:11:42 +07:00
hathach
c1c501e0c2 change usbd xfer_cb return type to bool 2018-12-12 13:12:06 +07:00
hathach
b6cb4757d2 change class driver open return type to bool 2018-12-12 13:00:59 +07:00
hathach
6d86db3977 rename edpt_dir/number/addr to tu_edpt_* 2018-12-12 11:51:31 +07:00
hathach
8b03b6d3b4 add Auto descriptor endpoint num config to support lpc17xx
CFG_TUD_DESC_*_EPNUM
2018-11-28 16:10:31 +07:00
hathach
80ecf1fd54 add OPT_MODE_HIGH_SPEED 2018-11-26 14:56:07 +07:00
hathach
cb8782e5f2 rename tusb_event_t to xfer_result_t 2018-11-23 15:14:47 +07:00
hathach
4314be9aeb msc device block count and block num
- replace CFG_TUD_MSC_BLOCK_NUM & CFG_TUD_MSC_BLOCK_SZ by
tud_msc_capacity_cb() (mandatory callback)
2018-11-22 12:11:06 +07:00
hathach
215f8603b1 nrf5x: refactor device control transfer.
- make control transfer as part of usbd. Class driver must use
usbd_control_ API() instead of dcd_ api.
- change the signature of class driver's control_request
- allow control request complete to stall in staus stage
- move control request parser & handling to usbd.
2018-11-16 21:56:39 +07:00
Scott Shawcroft
30e3c64134 Polish up control split and treat it more like a normal endpoint. 2018-11-08 13:45:30 -08:00
Scott Shawcroft
7a40ec2647 Split out the control endpoint logic 2018-11-07 23:04:34 -08:00
Scott Shawcroft
c582c0fda9 Add SAMD21 and SAMD51 support for CircuitPython.
The ProtoThreads style subtasks were removed because it led to
extremely unclear control flow. RTOSes can be used if threading is
needed.

Also added some additional functionality to MSC to support dynamic
LUNs and read-only LUNs.
2018-11-07 12:02:28 -08:00
hathach
e07b1acbed rename VERIFY to TU_VERIFY to avoid conflict with application 2018-08-13 18:10:23 +07:00
hathach
cf6c534c19 add usb msc callback description 2018-07-27 17:20:15 +07:00
hathach
72b600c393 update device msc callback 2018-07-26 22:41:46 +07:00