complete msc demo with lpc13uxx with readonly flash

This commit is contained in:
hathach
2013-11-26 13:58:13 +07:00
parent 8f70a6a886
commit 47d8af7111
4 changed files with 36 additions and 3 deletions

View File

@@ -103,6 +103,9 @@ uint16_t tusbd_msc_read10_cb (uint8_t coreid, uint8_t lun, void** pp_buffer, uin
uint16_t tusbd_msc_write10_cb(uint8_t coreid, uint8_t lun, void** pp_buffer, uint32_t lba, uint16_t block_count)
{
(*pp_buffer) = NULL;
mscd_sense_data.sense_key = SCSI_SENSEKEY_DATA_PROTECT; // let host know that this is read-only disk
return 0;
}