Browse Source

Merge pull request #7794 from tcm0116/2.0.x-usb_interrupt

[2.0.x] Fix LPC1768 USB interrupt priority
pull/1/head
Scott Lahteine 7 years ago
committed by GitHub
parent
commit
92389e4236
  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