diff options
| author | qiuyiuestc <[email protected]> | 2013-05-25 15:55:27 +0800 |
|---|---|---|
| committer | Grissiom <[email protected]> | 2013-05-25 15:55:27 +0800 |
| commit | 97a507e6673ca5e4c6e0d2bfa4fd38067292994d (patch) | |
| tree | 86e7100203498c913680eba8205903be9b442480 /components/drivers/include | |
| parent | 046182be94c04ca33c7b4a80a96c4b443314a5f7 (diff) | |
usbdevice/core: add reset function to support hotplug
When the USB got RESET packet from the host and the address is setup,
all the classes will got reset. The reset is done by class stop and than
class run. So the classes should reset their internal state in
class_{run,stop}.
Besides, the USB device driver could post a USB_MSG_RESET message on
every RESET packet.
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/usb_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/usb_device.h b/components/drivers/include/drivers/usb_device.h index 99e89b74c5..1a986fff56 100644 --- a/components/drivers/include/drivers/usb_device.h +++ b/components/drivers/include/drivers/usb_device.h @@ -145,6 +145,7 @@ enum udev_msg_type USB_MSG_SETUP_NOTIFY, USB_MSG_DATA_NOTIFY, USB_MSG_SOF, + USB_MSG_RESET, }; typedef enum udev_msg_type udev_msg_type; |
