Hi:
I try to get a notification when the USB decice disconnected from a host.
1. I modified the value of the macro definition USB_DEVICE_CONFIG_DETACH_ENABLE
/*! @brief Whether the device detached feature is enabled or not. */
#define USB_DEVICE_CONFIG_DETACH_ENABLE (1U)
2. Add Event handler In callback function
But cannot detect the connection status.
when I modify the ehci driver like shown as below , I can detect the device plug into a host , and can't detect unplug from the host yet.
So how to get a notification when the USB decice disconnected from a host.
Hi @bobhi009 ,
I follow you step on my RT1060 EVK. It works well. Attach and Detach information is printed on UART. I test on the USB CDC demo.
Regards,
Jing
Thanks for your replay,
Did you modify the echi driver like this?
Hi,
No, I didn't change here.
Regards,
Jing