diff options
| author | hathach <[email protected]> | 2014-03-31 11:59:43 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-03-31 11:59:43 +0700 |
| commit | 6682720b2aecb777d8f8aceedbd49aaff4fbbc27 (patch) | |
| tree | 9fcb36a06d168b31b0027affdcb8265560b33a79 /tinyusb/class/cdc_device.c | |
| parent | 0bb2cc64b0e1248bfc8e564755a0850b5e5ad762 (diff) | |
implement & document all the device class _mounted_cb & _unmounted_cb callbacks
Diffstat (limited to 'tinyusb/class/cdc_device.c')
| -rw-r--r-- | tinyusb/class/cdc_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/class/cdc_device.c b/tinyusb/class/cdc_device.c index 405095402..0d3120061 100644 --- a/tinyusb/class/cdc_device.c +++ b/tinyusb/class/cdc_device.c @@ -180,6 +180,8 @@ 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));
+
+ tusbd_cdc_unmounted_cb(coreid);
}
tusb_error_t cdcd_control_request_subtask(uint8_t coreid, tusb_control_request_t const * p_request)
|
