USB_IsConnected is now cleared before the USB_Disconnect() event is fired in response to VBUS being removed.
Minor documentation improvements.
This commit is contained in:
1 parent
2ee9fc7077
commit
4a8ac5e474
8 files changed
+39
-28
No files matched your search
@@ -89,6 +89,8 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
}
|
||||
else
|
||||
{
|
||||
USB_IsConnected = false;
|
||||
|
||||
EVENT_USB_Disconnect();
|
||||
|
||||
USB_Detach();
|
||||
@@ -96,8 +98,6 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
USB_PLL_Off();
|
||||
USB_REG_Off();
|
||||
|
||||
USB_IsConnected = false;
|
||||
|
||||
EVENT_USB_VBUSDisconnect();
|
||||
|
||||
USB_INT_Clear(USB_INT_VBUS);
|
||||
|
||||
Reference in new issue
Block a user