summaryrefslogtreecommitdiff
path: root/src/class/msc/msc_device.c
AgeCommit message (Collapse)Author
2019-11-01add assert to prevent div by zerohathach
2019-09-01rename lpc_usbd to lpc_ip3511hathach
2019-07-26webusb work great with linuxhathach
2019-07-24Merge branch 'master' into develophathach
2019-07-24change tud_msc_start_stop_cb() to return void -> boolhathach
2019-07-24rename tud_control_vendor_request_cb/complete_cb to ↵hathach
tud_vendor_control_request_cb/complete_cb
2019-07-16add tud_control_vendor_request_cb()/tud_control_vendor_complete_cb(), expose ↵hathach
usbd control transfer rename usbd_control_transfer/status to tud_control_transfer/status
2019-07-12clean up, rename internal driver control_request_complete to simply ↵hathach
control_complete
2019-05-29added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()hathach
- improve fifo write/read_n with only one lock - use usbd_edpt_xfer/usbd_edpt_busy for hid/cdc/msc class driver - replace cdc read's pending_read_from_host by usbd_edpt_busy()
2019-05-14more clean up use inline bit funciton instead of macroshathach
2019-05-14clean up endian convert functionhathach
2019-05-14update license year to 2019hathach
2019-05-14clean uphathach
2019-05-09msc device will stall READ_CAPACITY & READ_FORMAT_CAPACITY if ↵hathach
tud_msc_capacity_cb() get zero size
2019-05-06adding msc Start Stop to buitin command, but not complate yethathach
add tud_msc_start_stop_cb() as optional callback
2019-05-06add Test Unit Ready to builtin command, add tud_msc_test_unit_ready_cb()hathach
- rename tud_msc_maxlun_cb to tud_msc_get_maxlun_cb
2019-05-03add tud_msc_inquiry_cb() remove CFG_TUD_MSC_VENDOR/PRODUCT/PRODUCT_REVhathach
2019-05-01clean uphathach
2019-05-01adding optional ep out for hidhathach
refactor usbd_open_edpt_pair
2019-04-28add TUD_ to HID_REPORT_DESC_* templatehathach
2019-04-26add msc multiple lun supporthathach
- remove CFG_TUD_MSC_MAXLUN - add tud_msc_maxlun_cb() - add msc_dual_lun exmaple
2019-04-18update tud_hid_keyboard/mouse helperhathach
2019-03-27remove tud_msc_ready()hathach
2019-03-27cleanup, remove the use of _TINY_USB_SOURCE_FILE_hathach
2019-03-27replace dcd_edpt_(clear)stall by usbd_edpt_(clear)stallhathach
- remove dcd_edpt_stalled() from dcd porting
2019-03-20migrate license from BSD 3 clause to MIThathach
2019-03-04follow up to PR #39hathach
2019-03-03Fixes #33: Remove invalid use of strncpy().Gregory P. Smith
This was causing a stringop-truncation compiler warning in gcc 8 when the #defined values being copied from were string literals. `error: 'strncpy' output truncated before terminating nul copying 8 bytes from a string of the same length [-Werror=stringop-truncation]` These fields aren't NUL terminated C strings, they are a fixed width buffer that is supposed to be space (0x20) padded.
2019-02-22mscd: send scsi status before invoke read10/write10/scsi complete callbackhathach
2019-02-20Fix write protected MSC. The bits were flipped.Scott Shawcroft
2019-01-29zero init internal class/device datahathach
2018-12-14rename bit_* helper to tu_bit_*, BIT_* to TU_BIT_* for consistencyhathach
2018-12-12change usbd xfer_cb return type to boolhathach
2018-12-12change class driver open return type to boolhathach
2018-12-12rename descriptor_* helper to tu_desc_*hathach
2018-11-30rename OPT_MCU_LPC13UXX to OPT_MCU_LPC13XXhathach
2018-11-26clean up warningshathach
2018-11-23rename DCD_XFER_SUCCESS to XFER_RESULT_SUCCESShathach
2018-11-23rename tusb_event_t to xfer_result_thathach
2018-11-22rename CFG_TUSB_MEM_SECTION to CFG_TUSB_MEM_SECTIONhathach
2018-11-22msc device block count and block numhathach
- replace CFG_TUD_MSC_BLOCK_NUM & CFG_TUD_MSC_BLOCK_SZ by tud_msc_capacity_cb() (mandatory callback)
2018-11-16nrf5x: refactor device control transfer.hathach
- 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-08Polish up control split and treat it more like a normal endpoint.Scott Shawcroft
2018-11-07Split out the control endpoint logicScott Shawcroft
2018-11-07Add SAMD21 and SAMD51 support for CircuitPython.Scott Shawcroft
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-10-24rename verify_breakpoint to TU_BREAKPOINThathach
2018-10-24replace dcd_xfer_complete by dcd_xfer_complete()hathach
2018-10-23clean up msc devicehathach
2018-10-23clean up helper funchathach
2018-08-23rename common func to avoid conflicthathach