Panic: stop dport access handler without trying to use a lock

This commit is contained in:
Jeroen Domburg
2017-09-11 12:31:16 +08:00
parent de038f502c
commit b3fd494e71
3 changed files with 15 additions and 2 deletions
+9
View File
@@ -194,6 +194,15 @@ void IRAM_ATTR esp_dport_access_int_pause(void)
portEXIT_CRITICAL_ISR(&g_dport_mux);
}
//Used in panic code: the enter_critical stuff may be messed up so we just stop everything without checking the mux.
void IRAM_ATTR esp_dport_access_int_abort(void)
{
dport_core_state[0] = DPORT_CORE_STATE_IDLE;
#ifndef CONFIG_FREERTOS_UNICORE
dport_core_state[1] = DPORT_CORE_STATE_IDLE;
#endif
}
void IRAM_ATTR esp_dport_access_int_resume(void)
{
portENTER_CRITICAL_ISR(&g_dport_mux);