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.