diff --git a/components/esp_ipc/include/esp_ipc.h b/components/esp_ipc/include/esp_ipc.h index 40914a02a7..5e02c460bc 100644 --- a/components/esp_ipc/include/esp_ipc.h +++ b/components/esp_ipc/include/esp_ipc.h @@ -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 } diff --git a/components/esp_ipc/src/esp_ipc.c b/components/esp_ipc/src/esp_ipc.c index 2d7fcb688a..9c82bd09bf 100644 --- a/components/esp_ipc/src/esp_ipc.c +++ b/components/esp_ipc/src/esp_ipc.c @@ -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 \ No newline at end of file +#endif // not CONFIG_FREERTOS_UNICORE or CONFIG_APPTRACE_GCOV_ENABLE