apptrace lock acquire function was re-designed to minimize waiting time with disabled IRQs

This commit is contained in:
Alexey Gerenkov
2017-09-03 03:44:21 +03:00
committed by Ivan Grokhotkov
parent b3c6748a0b
commit cf29dd47a9
2 changed files with 25 additions and 17 deletions

View File

@@ -115,7 +115,7 @@ static timer_group_t s_ts_timer_group;
// everything is fine, so for multi-core env we have to wait on underlying lock forever
#define SEGGER_LOCK_WAIT_TMO ESP_APPTRACE_TMO_INFINITE
static esp_apptrace_lock_t s_sys_view_lock = {.irq_stat = 0, .portmux = portMUX_INITIALIZER_UNLOCKED};
static esp_apptrace_lock_t s_sys_view_lock = {.mux = portMUX_INITIALIZER_UNLOCKED, .int_state = 0};
static const char * const s_isr_names[] = {
[0] = "WIFI_MAC",