From 97a507e6673ca5e4c6e0d2bfa4fd38067292994d Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sat, 25 May 2013 15:55:27 +0800 Subject: 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. --- components/drivers/include/drivers/usb_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'components/drivers/include') 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; -- cgit v1.3.1