@@ -89,7 +89,7 @@ bool tud_msc_set_sense(uint8_t lun, uint8_t sense_key, uint8_t add_sense_code, u
89
89
* \retval negative Indicate error e.g reading disk I/O. tinyusb will \b STALL the corresponding
90
90
* endpoint and return failed status in command status wrapper phase.
91
91
*/
92
- int32_t tud_msc_read10_cb (uint8_t lun , uint32_t lba , uint32_t offset , void * buffer , uint32_t bufsize );
92
+ ATTR_WEAK int32_t tud_msc_read10_cb (uint8_t lun , uint32_t lba , uint32_t offset , void * buffer , uint32_t bufsize );
93
93
94
94
/**
95
95
* Callback invoked when received \ref SCSI_CMD_WRITE_10 command
@@ -108,10 +108,10 @@ int32_t tud_msc_read10_cb (uint8_t lun, uint32_t lba, uint32_t offset, void* buf
108
108
* \retval negative Indicate error writing disk I/O. Tinyusb will \b STALL the corresponding
109
109
* endpoint and return failed status in command status wrapper phase.
110
110
*/
111
- int32_t tud_msc_write10_cb (uint8_t lun , uint32_t lba , uint32_t offset , uint8_t * buffer , uint32_t bufsize );
111
+ ATTR_WEAK int32_t tud_msc_write10_cb (uint8_t lun , uint32_t lba , uint32_t offset , uint8_t * buffer , uint32_t bufsize );
112
112
113
113
// Invoked to determine the disk size
114
- void tud_msc_capacity_cb (uint8_t lun , uint32_t * block_count , uint16_t * block_size );
114
+ ATTR_WEAK void tud_msc_capacity_cb (uint8_t lun , uint32_t * block_count , uint16_t * block_size );
115
115
116
116
/**
117
117
* Callback invoked when received an SCSI command not in built-in list below.
@@ -130,7 +130,7 @@ void tud_msc_capacity_cb(uint8_t lun, uint32_t* block_count, uint16_t* block_siz
130
130
* - READ_CAPACITY10, READ_FORMAT_CAPACITY, INQUIRY, MODE_SENSE6, REQUEST_SENSE
131
131
* - READ10 and WRITE10 has their own callbacks
132
132
*/
133
- int32_t tud_msc_scsi_cb (uint8_t lun , uint8_t const scsi_cmd [16 ], void * buffer , uint16_t bufsize );
133
+ ATTR_WEAK int32_t tud_msc_scsi_cb (uint8_t lun , uint8_t const scsi_cmd [16 ], void * buffer , uint16_t bufsize );
134
134
135
135
/*------------- Optional callbacks -------------*/
136
136
0 commit comments