Fix LPC1768 USB interrupt priority
This commit is contained in:
parent
de05b2b309
commit
f1b6b4bdaa
@ -153,6 +153,7 @@ void USB_Init (void) {
|
||||
while ((LPC_USB->USBClkSt & 0x1A) != 0x1A);
|
||||
|
||||
NVIC_EnableIRQ(USB_IRQn); /* enable USB interrupt */
|
||||
NVIC_SetPriority(USB_IRQn, NVIC_EncodePriority(0, 5, 0));
|
||||
|
||||
USB_Reset();
|
||||
USB_SetAddress(0);
|
||||
|
Loading…
Reference in New Issue
Block a user