diff options
| author | hathach <[email protected]> | 2014-03-22 22:50:08 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-22 22:50:08 +0700 |
| commit | 1cdca167cd41f51ca587a265b41f79446d828e48 (patch) | |
| tree | 71e891e8a3ff421cc64dcb45420b6a9521992f5a /tinyusb/class/msc_device.h | |
| parent | 7c5b3861303e3cf0210a40bf8a0a511583700fd0 (diff) | |
rename dcd_11u_13u_qhd_t::total_bytes to nbytes to prevent confusion
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
Diffstat (limited to 'tinyusb/class/msc_device.h')
| -rw-r--r-- | tinyusb/class/msc_device.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/class/msc_device.h b/tinyusb/class/msc_device.h index eba3e0b92..a50e507f5 100644 --- a/tinyusb/class/msc_device.h +++ b/tinyusb/class/msc_device.h @@ -105,8 +105,8 @@ uint16_t tusbd_msc_write10_cb(uint8_t coreid, uint8_t lun, void** pp_buffer, uin * \param[in] coreid USB Controller ID
* \param[in] lun Targeted Logical Unit
* \param[in] scsi_cmd SCSI command contents, application should examine this command block to know which command host requested
- * \param[out] pp_buffer Pointer to buffer which application need to update with the address to transceive data with host
- * Must be accessible by USB controller (see \ref TUSB_CFG_ATTR_USBRAM)
+ * \param[out] pp_buffer Pointer to buffer which application need to update with the address to transfer data with host.
+ * The buffer address can be anywhere since the stack will copy its contents to a internal USB-accessible buffer.
* \param[in] p_length length
* \retval non-zero Actual number of block that application can receive and must be less than or equal to \a \b block_count.
* \retval zero Indicate error in retrieving data from application. Tinyusb device stack will \b STALL the corresponding
@@ -114,7 +114,7 @@ uint16_t tusbd_msc_write10_cb(uint8_t coreid, uint8_t lun, void** pp_buffer, uin * \note Although this callback is called by tinyusb device task (non-isr context), however as all the classes share
* the same task (to save resource), any delay in this callback will cause delay in reponse on other classes.
*/
-msc_csw_status_t tusbd_msc_scsi_cb (uint8_t coreid, uint8_t lun, uint8_t scsi_cmd[16], void ** pp_buffer, uint16_t* p_length);
+msc_csw_status_t tusbd_msc_scsi_cb (uint8_t coreid, uint8_t lun, uint8_t scsi_cmd[16], void const ** pp_buffer, uint16_t* p_length);
/** @} */
/** @} */
|
