correct isr context for nrf DCD_EVENT_UNPLUGGED

also rename debug lookup to prevent conflict
This commit is contained in:
hathach
2020-08-01 12:02:59 +07:00
parent 22100b252f
commit 9bf2b33366
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;