Remove redundant setting of UIDE in the AVR8 and AVR32 USB controller drivers.
#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
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);
\r
#if defined(USB_CAN_BE_BOTH)\r
if (UIDModeSelectEnabled)\r
- {\r
- AVR32_USBB.USBCON.uide = true;\r
- USB_INT_Enable(USB_INT_IDTI);\r
- }\r
+ USB_INT_Enable(USB_INT_IDTI);\r
#endif\r
\r
USB_CLK_Unfreeze();\r
{\r
#if defined(USB_CAN_BE_DEVICE)\r
AVR32_USBB.USBCON.uimod = true;\r
+\r
USB_Init_Device();\r
#endif\r
}\r
{\r
#if defined(USB_CAN_BE_HOST)\r
AVR32_USBB.USBCON.uimod = false;\r
+\r
USB_Init_Host();\r
#endif\r
}\r
USB_INT_Enable(USB_INT_EORSTI);\r
\r
USB_Attach();\r
- USB_Device_SetDeviceAddress(0);\r
}\r
#endif\r
\r
\r
if (USB_INT_HasOccurred(USB_INT_SUSPI) && USB_INT_IsEnabled(USB_INT_SUSPI))\r
{\r
- USB_INT_Clear(USB_INT_SUSPI);\r
-\r
USB_INT_Disable(USB_INT_SUSPI);\r
USB_INT_Enable(USB_INT_WAKEUPI);\r
\r
* - Changed AVRISP-MKII project to use the Watchdog interrupt for command timeouts, to reduce CPU usage and free timer 0
* for other uses
* - Updated the software USART code in the XPLAIN Bridge application so that the incomming bits are sampled at their mid-point
- * instead of starting point, to give maximum reliability (thanks to Anton)
+ * instead of starting point, to give maximum reliability (thanks to Anton Staaf)
*
* <b>Fixed:</b>
* - Core:
* - Fixed Still Image Host class driver exiting the descriptor search routine prematurely if the data pipes (but not event pipe)
* is found
* - Fixed missing call to Pipe_SetInfiniteINRequests() in the Pipe_ConfigurePipe() routine
+ * - Fixed Remote Wakeup broken on the AVRs due to the mechanism only operating when the SUSPI bit is set (thanks to Holger Steinhaus)
* - Library Applications:
* - Fixed Benito project discarding incoming data from the USB virtual serial port when the USART is busy
* - Fixed broken DFU bootloader, added XPLAIN support for bootloader start when XCK jumpered to ground