Renamed USB_Device_SetHighSpeed() to USB_Device_SetFullSpeed() so that the correct terminology is used (thanks to Brian Dickman).
Fix USB_PLL_Off() call in the series 4, 6 and 7 microcontroller disconnect interrupt handler code, which wasn't guarded by a test of USB_Options to check if the user has specified manual PLL control (thanks to Brian Dickman).
This commit is contained in:
@@ -93,7 +93,10 @@ ISR(USB_GEN_vect, ISR_BLOCK)
|
||||
|
||||
USB_Detach();
|
||||
USB_CLK_Freeze();
|
||||
USB_PLL_Off();
|
||||
|
||||
if (!(USB_Options & USB_OPT_MANUAL_PLL))
|
||||
USB_PLL_Off();
|
||||
|
||||
USB_REG_Off();
|
||||
|
||||
EVENT_USB_VBUSDisconnect();
|
||||
|
||||
Reference in New Issue
Block a user