Merge pull request #477 from hathach/fix-nrf-unplugg-isr-event

correct isr context for nrf DCD_EVENT_UNPLUGGED
This commit is contained in:
Ha Thach
2020-08-01 12:31:48 +07:00
committed by GitHub
3 changed files with 9 additions and 9 deletions

View File

@@ -829,7 +829,7 @@ void tusb_hal_nrf_power_event (uint32_t event)
hfclk_disable();
dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, true);
dcd_event_bus_signal(0, DCD_EVENT_UNPLUGGED, (SCB->ICSR & SCB_ICSR_VECTACTIVE_Msk) ? true : false);
}
break;