diff options
| author | qiuyiuestc <[email protected]> | 2013-06-12 16:29:57 -0700 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2013-06-12 16:29:57 -0700 |
| commit | 4cdb0154ba7418df177f4d6a9afd1fc1be6aa0ae (patch) | |
| tree | d6f373e6ff7433321838e0efd2db9ee6b9aaa128 /components/drivers/include | |
| parent | 4807145a7138bf7f2509b4c197f6119a81b10b69 (diff) | |
| parent | b02993c9895d34e84f2dbf156ee274ad6abf84c0 (diff) | |
Merge pull request #100 from grissiom/usb-plug
usb: add USB_MSG_PLUG_OUT event
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/usb_device.h | 5 |
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; |
