Fix XMEGA core USB driver so that device mode enumerates correctly on the host PC.

This commit is contained in:
Dean Camera 2011-10-31 02:26:21 +00:00
parent eb5b8a32e4
commit 0304916356
6 changed files with 41 additions and 13 deletions

View file

@ -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);