summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc_device.c
AgeCommit message (Collapse)Author
2018-03-06move class fileshathach
2018-03-06rename hal_dcd_pipe_stall()hathach
2018-03-06rename to hal_dcd_pipe_xfer()hathach
2018-03-06change hal_dcd_pipe_open() signature to return boolhathach
- remove endpointhandle_is_valid()
2018-03-06remove class code in pipe open()hathach
2018-03-06rename to hal_dcd_control_xfer() and hal_dcd_control_stall()hathach
2018-03-02add tud_mount_cb, tud_umount_cbhathach
remove device class/interface callback
2018-03-01device API renamehathach
2014-04-24correct dcd_pipe_is_busy to use list_qtd_idx[] instead of qtd_overlayhathach
flush usbd_queue_hdl when bus_reset add assert check for osal_queue_send increase ENUM_QUEUE_DEPTH for usbh change osal_freeRTOS.h implementation to - correctly waiting forever for semaphore wait, queue & mutex - not use ISR safe version since it is not as generic as we want
2014-03-31implement & document all the device class _mounted_cb & _unmounted_cb callbackshathach
2014-03-22rename dcd_11u_13u_qhd_t::total_bytes to nbytes to prevent confusionhathach
introduce scsi_data to mscd_interface_t to make tusbd_msc_scsi_cb buffer's address no longer to be required in USB ram section --> save usb ram for lpc11/13u
2014-03-21clean ATTR_USB_MIN_ALIGNMENT on application and most of device except the ↵hathach
msc_device.c
2014-03-18clean uphathach
2014-03-13remove legacy code of msc_device.c read10 & write10hathach
clean up some warnings
2014-03-12a fix to IAR's incapability to force struct's member on specified alignmenthathach
2014-03-12IAR line ending warninghathach
2014-03-10change IAR TUSB_CFG_ATTR_USBRAM to _Pragma("location=\".ahb_sram1\"") ↵hathach
instead of @ .ahb_sram1 so that we can place it before the variable for a cleaner code change pipe xfer API buffer from void* to uint8_t* change FIFO_DEF to have a separated buffer to be compatible with IAR\ refractor IAR data alignment pragma
2014-03-09rename tusbd_msc_scsi_received_isr to tusbd_msc_scsi_cbhathach
fix the status phase true --> false ASSERT_STATUS( dcd_pipe_xfer( p_msc->edpt_in , p_csw, sizeof(msc_cmd_status_wrapper_t), false) ); board ea4357 added P9_5 pull down for device connect
2013-12-13able to get connect status change interrupt occuredhathach
2013-12-09add keyboard led maskhathach
make usbd control request to subtask add get/set report via control pipe to hidd enforce soft DMA to control pipe for lpc11u (lpc17xx not yet) temp add led_blinking_set_interval to change led blinking interval refractor dcd_pipe_control_xfer to have interrupt on complete option add get/set report support of moused_app and keyboardd_app, keyboard LED will make LED blink faster
2013-12-01fix potential wrong endpoint handle for stalling unsupported scsi commandhathach
2013-12-01correct stall & clear stall behavior for non-control pipehathach
fix data_residue when read10, write10 return 0 (no need for BE conversion)
2013-11-30completely change the dcd for lpc11u & lpc13u to overcome the fact that ↵hathach
lpc11u dma cannot transfer more than 64 bytes each buffer. This implement an soft DMA for lpc11u & lpc13u (previously 1023 max) queued transfer
2013-11-26house keepinghathach
2013-11-26change endian conversion to native to be & be to nativehathach
completely deferred xfer isr event to usbd task complete read10, write10 sequence for large data transfer
2013-11-25refractor usbd taskhathach
move control request data into task event adding tusbd_msc_read10_cb, tusbd_msc_write10_cb (not fully supported)
2013-11-21refractor usbd-dcd callback, add bus event isrhathach
2013-11-15fix build error with device 43xxhathach
refractor mscd ramdisk demo
2013-11-14complete double buffering for queueing xfer for lpc11u/13u requried by msc ↵hathach
device
2013-11-13able to build and run cdc device demo on lpc11uxxhathach
2013-11-05msc add supporthathach
- SCSI_CMD_MODE_SELECT_6 - SCSI_CMD_MODE_SENSE_6 - SCSI_CMD_PREVENT_ALLOW_MEDIUM_REMOVAL fix msc device bug with no data unsupported command complete msc device demo with ram disk of 8KB
2013-11-01added support forhathach
- sense data scsi_sense_fixed_data_t - read format capacity scsi_read_format_capacity_data_t change msc device callback to support actual response fix dcd_pipe_clear_stall also reset toggle
2013-11-01add dcd pipe clear stallhathach
- tusb_error_t dcd_pipe_clear_stall(uint8_t coreid, uint8_t edpt_addr) but does not take endpoint_handle_t as input complete msc device driver add usbd clear stall endpoint
2013-11-01implement msc device classhathach
usbd auto stall control for not supported return from class control request usbd implement xfer isr callback mechanism DCD - implement dcd multiple qtd support - dcd dcd_pipe_stall - implement dcd_pipe_queue_xfer - xfer_complete_isr - flush control endpoint if received new setup while previous transfer is not complete change msc_cmd_block_wrapper_t flags field to dir force full speed for easy testing NOTEs: somehow unable to get endpoint IN interrupt with ioc