Browse Source

Fix LPC1768 USB interrupt priority

pull/1/head
Thomas Moore 7 years ago
parent
commit
f1b6b4bdaa
  1. 1
      frameworks/CMSIS/LPC1768/lib/usb/usbhw.cpp

1
frameworks/CMSIS/LPC1768/lib/usb/usbhw.cpp

@ -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…
Cancel
Save