From 8d3c40c81d64bd2883e0706bc556c6116fb5f0ab Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 29 Mar 2019 10:53:43 +0700 Subject: [PATCH] clean up --- cores/nRF5/usb/usb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/nRF5/usb/usb.c b/cores/nRF5/usb/usb.c index 07adb3f2..0d57b36c 100644 --- a/cores/nRF5/usb/usb.c +++ b/cores/nRF5/usb/usb.c @@ -63,6 +63,8 @@ void usb_init(void) nrfx_power_usbevt_enable(); + // Priorities 0, 1, 4 (nRF52) are reserved for SoftDevice + // 2 is highest for application NVIC_SetPriority(USBD_IRQn, 2); // USB power may already be ready at this time -> no event generated