summaryrefslogtreecommitdiff
path: root/src/device/usbd.c
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-07-13 00:32:02 +0700
committerhathach <[email protected]>2018-07-13 00:32:02 +0700
commita623f0c179b49f510a206666bbe2ca52144a6458 (patch)
tree365f0d6be5e9851b660b291af26726b0087bdd60 /src/device/usbd.c
parenta4292e590668c30f78027573f59f1f4abca9dcb8 (diff)
better multiple interfaces support for cdc device
Diffstat (limited to 'src/device/usbd.c')
-rw-r--r--src/device/usbd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index b1649ab4b..971f7dd05 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -528,6 +528,8 @@ void dcd_bus_event(uint8_t rhport, usbd_bus_event_type_t bus_event)
varclr_(&_usbd_dev);
osal_queue_flush(_usbd_q);
osal_semaphore_reset_isr(_usbd_ctrl_sem);
+
+ // TODO move to unplugged
for (uint8_t i = 0; i < USBD_CLASS_DRIVER_COUNT; i++)
{
if ( usbd_class_drivers[i].close ) usbd_class_drivers[i].close( rhport );