implement & document all the device class _mounted_cb & _unmounted_cb callbacks

This commit is contained in:
hathach
2014-03-31 11:59:43 +07:00
parent 0bb2cc64b0
commit 6682720b2a
9 changed files with 79 additions and 19 deletions
+10
View File
@@ -93,6 +93,16 @@ static scsi_mode_parameters_t const msc_dev_mode_para =
//--------------------------------------------------------------------+
// tinyusb callback (ISR context)
//--------------------------------------------------------------------+
void tusbd_msc_mounted_cb(uint8_t coreid)
{
}
void tusbd_msc_unmounted_cb(uint8_t coreid)
{
}
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)
{
// read10 & write10 has their own callback and MUST not be handled here