aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Platform
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2011-10-31 02:26:21 +0000
committerDean Camera <dean@fourwalledcubicle.com>2011-10-31 02:26:21 +0000
commit0304916356ea83bb17783df157c79cbfdef0d45b (patch)
tree5a4671825b203897c7c43146b578716cb10e74bc /LUFA/Platform
parenteb5b8a32e4d254479b14c82d36de8e17218640c4 (diff)
downloadlufa-0304916356ea83bb17783df157c79cbfdef0d45b.tar.gz
lufa-0304916356ea83bb17783df157c79cbfdef0d45b.tar.bz2
lufa-0304916356ea83bb17783df157c79cbfdef0d45b.zip
Fix XMEGA core USB driver so that device mode enumerates correctly on the host PC.
Diffstat (limited to 'LUFA/Platform')
-rw-r--r--LUFA/Platform/XMEGA/ClockManagement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Platform/XMEGA/ClockManagement.h b/LUFA/Platform/XMEGA/ClockManagement.h
index 357ed7b32..1305d0e4b 100644
--- a/LUFA/Platform/XMEGA/ClockManagement.h
+++ b/LUFA/Platform/XMEGA/ClockManagement.h
@@ -282,8 +282,8 @@
{
NVM.CMD = NVM_CMD_READ_CALIB_ROW_gc;
DFLLRC32M.CALA = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBRCOSCA));
- NVM.CMD = NVM_CMD_READ_CALIB_ROW_gc;
DFLLRC32M.CALB = pgm_read_byte(offsetof(NVM_PROD_SIGNATURES_t, USBRCOSC));
+ NVM.CMD = 0;
}
DFLLRC32M.CTRL = DFLL_ENABLE_bm;
@@ -359,7 +359,7 @@
GlobalInterruptDisable();
CCP = CCP_IOREG_gc;
- CLK.CTRL = ClockSourceMask;
+ CLK_CTRL = ClockSourceMask;
SetGlobalInterruptMask(CurrentGlobalInt);