Browse Source

Fix LPC1768 USB interrupt priority

Thomas Moore 7 years ago
parent
commit
f1b6b4bdaa
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      frameworks/CMSIS/LPC1768/lib/usb/usbhw.cpp

+ 1
- 0
frameworks/CMSIS/LPC1768/lib/usb/usbhw.cpp View File

@@ -153,6 +153,7 @@ void USB_Init (void) {
153 153
   while ((LPC_USB->USBClkSt & 0x1A) != 0x1A);
154 154
 
155 155
   NVIC_EnableIRQ(USB_IRQn);               /* enable USB interrupt */
156
+  NVIC_SetPriority(USB_IRQn, NVIC_EncodePriority(0, 5, 0));
156 157
 
157 158
   USB_Reset();
158 159
   USB_SetAddress(0);

Loading…
Cancel
Save