ipc: enable ipc task at single core for gcov dump

This commit is contained in:
Erhan Kurubas
2021-08-12 08:52:15 +03:00
committed by bot
parent 2a5d0a041e
commit 8fe5cdf646
2 changed files with 5 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
extern "C" {
#endif
#ifndef CONFIG_FREERTOS_UNICORE
#if !defined(CONFIG_FREERTOS_UNICORE) || defined(CONFIG_APPTRACE_GCOV_ENABLE)
/** @cond */
typedef void (*esp_ipc_func_t)(void* arg);
@@ -88,7 +88,7 @@ esp_err_t esp_ipc_call(uint32_t cpu_id, esp_ipc_func_t func, void* arg);
*/
esp_err_t esp_ipc_call_blocking(uint32_t cpu_id, esp_ipc_func_t func, void* arg);
#endif // not CONFIG_FREERTOS_UNICORE
#endif // not CONFIG_FREERTOS_UNICORE or CONFIG_APPTRACE_GCOV_ENABLE
#ifdef __cplusplus
}

View File

@@ -25,7 +25,7 @@
#include "freertos/task.h"
#include "freertos/semphr.h"
#ifndef CONFIG_FREERTOS_UNICORE
#if !defined(CONFIG_FREERTOS_UNICORE) || defined(CONFIG_APPTRACE_GCOV_ENABLE)
static TaskHandle_t s_ipc_task_handle[portNUM_PROCESSORS];
static SemaphoreHandle_t s_ipc_mutex[portNUM_PROCESSORS]; // This mutex is used as a global lock for esp_ipc_* APIs
@@ -180,6 +180,6 @@ esp_err_t esp_ipc_start_gcov_from_isr(uint32_t cpu_id, esp_ipc_func_t func, void
return ESP_OK;
}
#endif
#endif
#endif // not CONFIG_FREERTOS_UNICORE
#endif // not CONFIG_FREERTOS_UNICORE or CONFIG_APPTRACE_GCOV_ENABLE