nrf5x Let application decide USBD_IRQn priority

This commit is contained in:
hathach
2019-01-29 19:42:31 +07:00
parent 59c1b4b427
commit 1a84f5da54
2 changed files with 3 additions and 4 deletions

View File

@@ -183,6 +183,8 @@ void board_init(void)
nrfx_qspi_cinstr_xfer(&cinstr_cfg, &sr_quad_en, NULL);
#endif
NVIC_SetPriority(USBD_IRQn, 2);
// USB power may already be ready at this time -> no event generated
// We need to invoke the handler based on the status initially
uint32_t usb_reg;