summaryrefslogtreecommitdiff
path: root/tinyusb/class/cdc_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/cdc_device.c
parent0afa0ce4ccf493e7684c753ab0af2411eb198f14 (diff)
add tud_mount_cb, tud_umount_cb
remove device class/interface callback
Diffstat (limited to 'tinyusb/class/cdc_device.c')
-rw-r--r--tinyusb/class/cdc_device.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/tinyusb/class/cdc_device.c b/tinyusb/class/cdc_device.c
index 455c04339..4f34c455a 100644
--- a/tinyusb/class/cdc_device.c
+++ b/tinyusb/class/cdc_device.c
@@ -170,8 +170,6 @@ tusb_error_t cdcd_open(uint8_t coreid, tusb_descriptor_interface_t const * p_int
p_cdc->interface_number = p_interface_desc->bInterfaceNumber;
- tud_cdc_mounted_cb(coreid);
-
return TUSB_ERROR_NONE;
}
@@ -179,8 +177,6 @@ void cdcd_close(uint8_t coreid)
{
// no need to close opened pipe, dcd bus reset will put controller's endpoints to default state
memclr_(&cdcd_data[coreid], sizeof(cdcd_data_t));
-
- tud_cdc_unmounted_cb(coreid);
}
tusb_error_t cdcd_control_request_subtask(uint8_t coreid, tusb_control_request_t const * p_request)