Fixed Remote Wakeup broken on the AVRs due to the mechanism only operating when the SUSPI bit is set (thanks to Holger Steinhaus).
Remove redundant setting of UIDE in the AVR8 and AVR32 USB controller drivers.
This commit is contained in:
1 parent
95a1aa4c01
commit
134e018b21
5 files changed
+7
-11
No files matched your search
@@ -75,12 +75,13 @@ void USB_Init(
|
||||
#if defined(USB_CAN_BE_BOTH)
|
||||
if (Mode == USB_MODE_UID)
|
||||
{
|
||||
UHWCON |= (1 << UIDE);
|
||||
UHWCON |= (1 << UIDE);
|
||||
USB_INT_Enable(USB_INT_IDTI);
|
||||
USB_CurrentMode = USB_GetUSBModeFromUID();
|
||||
}
|
||||
else
|
||||
{
|
||||
UHWCON &= ~(1 << UIDE);
|
||||
USB_CurrentMode = Mode;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -112,8 +112,6 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
|
||||
if (USB_INT_HasOccurred(USB_INT_SUSPI) && USB_INT_IsEnabled(USB_INT_SUSPI))
|
||||
{
|
||||
USB_INT_Clear(USB_INT_SUSPI);
|
||||
|
||||
USB_INT_Disable(USB_INT_SUSPI);
|
||||
USB_INT_Enable(USB_INT_WAKEUPI);
|
||||
|
||||
|
||||
Reference in new issue
Block a user