Skip to content

Commit bd07474

Browse files
committed
clean up
1 parent 2297f72 commit bd07474

File tree

1 file changed

+3
-1
lines changed
  • cores/nRF5/usb/tinyusb/src/portable/nordic/nrf5x

1 file changed

+3
-1
lines changed

cores/nRF5/usb/tinyusb/src/portable/nordic/nrf5x/hal_nrf5x.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ enum {
6565
/*------------------------------------------------------------------*/
6666
/* MACRO TYPEDEF CONSTANT ENUM
6767
*------------------------------------------------------------------*/
68+
// Priorities 0, 1, 4 (nRF52) are reserved for SoftDevice
69+
// 2 is highest for application
6870
#define USB_NVIC_PRIO 2
6971

7072
void tusb_hal_nrf_power_event(uint32_t event);
@@ -261,7 +263,7 @@ void tusb_hal_nrf_power_event (uint32_t event)
261263
NRF_USBD->INTENSET = USBD_INTEN_USBRESET_Msk | USBD_INTEN_USBEVENT_Msk | USBD_INTEN_EPDATA_Msk |
262264
USBD_INTEN_EP0SETUP_Msk | USBD_INTEN_EP0DATADONE_Msk | USBD_INTEN_ENDEPIN0_Msk | USBD_INTEN_ENDEPOUT0_Msk;
263265

264-
// Enable interrupt, Priorities 0,1,4,5 (nRF52) are reserved for SoftDevice
266+
// Enable interrupt
265267
NVIC_SetPriority(USBD_IRQn, USB_NVIC_PRIO);
266268
NVIC_ClearPendingIRQ(USBD_IRQn);
267269
NVIC_EnableIRQ(USBD_IRQn);

0 commit comments

Comments
 (0)