Fix incorrect Interrupt disable function for the XMEGA architecture (thanks to Simon Küppers).

This commit is contained in:
Dean Camera 2013-03-23 21:53:56 +00:00
parent 31d3984d8d
commit 654217548b

View File

@ -36,7 +36,7 @@
void USB_INT_DisableAllInterrupts(void) void USB_INT_DisableAllInterrupts(void)
{ {
USB.INTCTRLA &= USB_INTLVL_gm; USB.INTCTRLA &= ~USB_INTLVL_gm;
USB.INTCTRLB = 0; USB.INTCTRLB = 0;
} }