summaryrefslogtreecommitdiff
path: root/tinyusb/class/msc_device.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-03-02 00:18:21 +0700
committerhathach <[email protected]>2018-03-02 00:18:21 +0700
commit2580b4c6a7e45c762e09020719af805f1be46117 (patch)
treebf1bc0a3e722fe9bb71aa7287c932d2f6c73cd7b /tinyusb/class/msc_device.c
parent0afa0ce4ccf493e7684c753ab0af2411eb198f14 (diff)
add tud_mount_cb, tud_umount_cb
remove device class/interface callback
Diffstat (limited to 'tinyusb/class/msc_device.c')
-rw-r--r--tinyusb/class/msc_device.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tinyusb/class/msc_device.c b/tinyusb/class/msc_device.c
index 34d6bdcd8..8bd01f834 100644
--- a/tinyusb/class/msc_device.c
+++ b/tinyusb/class/msc_device.c
@@ -82,7 +82,6 @@ void mscd_init(void)
void mscd_close(uint8_t coreid)
{
memclr_(&mscd_data, sizeof(mscd_interface_t));
- tud_msc_unmounted_cb(coreid);
}
tusb_error_t mscd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_interface_desc, uint16_t *p_length)
@@ -112,8 +111,6 @@ tusb_error_t mscd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int
(*p_length) += sizeof(tusb_descriptor_interface_t) + 2*sizeof(tusb_descriptor_endpoint_t);
- tud_msc_mounted_cb(coreid);
-
//------------- Queue Endpoint OUT for Command Block Wrapper -------------//
ASSERT_STATUS( dcd_pipe_xfer(p_msc->edpt_out, (uint8_t*) &p_msc->cbw, sizeof(msc_cmd_block_wrapper_t), true) );