Skip to content

Commit 487fcfd

Browse files
committed
clean up
1 parent f0d5b55 commit 487fcfd

File tree

2 files changed

+4
-587
lines changed

2 files changed

+4
-587
lines changed

cores/nRF5/usb/tinyusb/src/class/msc/msc_device.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ bool tud_msc_set_sense(uint8_t lun, uint8_t sense_key, uint8_t add_sense_code, u
8989
* \retval negative Indicate error e.g reading disk I/O. tinyusb will \b STALL the corresponding
9090
* endpoint and return failed status in command status wrapper phase.
9191
*/
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);
9393

9494
/**
9595
* 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
108108
* \retval negative Indicate error writing disk I/O. Tinyusb will \b STALL the corresponding
109109
* endpoint and return failed status in command status wrapper phase.
110110
*/
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);
112112

113113
// 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);
115115

116116
/**
117117
* 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
130130
* - READ_CAPACITY10, READ_FORMAT_CAPACITY, INQUIRY, MODE_SENSE6, REQUEST_SENSE
131131
* - READ10 and WRITE10 has their own callbacks
132132
*/
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);
134134

135135
/*------------- Optional callbacks -------------*/
136136

0 commit comments

Comments
 (0)