diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-03-21 10:20:42 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-03-21 10:20:42 +0000 |
commit | aba7932a5c7c5f4a65f1c8558c94ed313ff3ca96 (patch) | |
tree | ef58b9575ec89bdd48bc176f0a4d26a20013dbd3 /LUFA/Drivers/USB/Core/UC3 | |
parent | c7f4752d6bacf15aaea13a111c1d9bb8576f186d (diff) | |
download | lufa-aba7932a5c7c5f4a65f1c8558c94ed313ff3ca96.tar.gz lufa-aba7932a5c7c5f4a65f1c8558c94ed313ff3ca96.tar.bz2 lufa-aba7932a5c7c5f4a65f1c8558c94ed313ff3ca96.zip |
F_CLOCK changed to F_USB to be more descriptive, and applicable on future architecture ports.
Diffstat (limited to 'LUFA/Drivers/USB/Core/UC3')
-rw-r--r-- | LUFA/Drivers/USB/Core/UC3/USBController_UC3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c b/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c index a9ac2481c..e3d97d684 100644 --- a/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c +++ b/LUFA/Drivers/USB/Core/UC3/USBController_UC3.c @@ -106,8 +106,8 @@ void USB_ResetInterface(void) AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].pllsel = !(USB_Options & USB_OPT_GCLK_SRC_OSC);
AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].oscsel = !(USB_Options & USB_OPT_GCLK_CHANNEL_0);
- AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].diven = (F_CLOCK != USB_CLOCK_REQUIRED_FREQ);
- AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].div = (F_CLOCK == USB_CLOCK_REQUIRED_FREQ) ? 0 : (uint32_t)(((F_CLOCK / USB_CLOCK_REQUIRED_FREQ) - 1) / 2);
+ AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].diven = (F_USB != USB_CLOCK_REQUIRED_FREQ);
+ AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].div = (F_USB == USB_CLOCK_REQUIRED_FREQ) ? 0 : (uint32_t)(((F_USB / USB_CLOCK_REQUIRED_FREQ) - 1) / 2);
AVR32_PM.GCCTRL[AVR32_PM_GCLK_USBB].cen = true;
USB_INT_DisableAllInterrupts();
|