summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/usb_device.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/usb_device.h b/components/drivers/include/drivers/usb_device.h
index f0e0989ce5..2f464def3f 100644
--- a/components/drivers/include/drivers/usb_device.h
+++ b/components/drivers/include/drivers/usb_device.h
@@ -146,6 +146,11 @@ enum udev_msg_type
USB_MSG_DATA_NOTIFY,
USB_MSG_SOF,
USB_MSG_RESET,
+ /* we don't need to add a "PLUG_IN" event because after the cable is
+ * plugged in(before any SETUP) the classed have nothing to do. If the host
+ * is ready, it will send RESET and we will have USB_MSG_RESET. So, a RESET
+ * should reset and run the class while plug_in is not. */
+ USB_MSG_PLUG_OUT,
};
typedef enum udev_msg_type udev_msg_type;