mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 21:10:20 +00:00
feat(coex): support GPIO debug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "private/esp_coexist_adapter.h"
|
||||
#include "esp32s3/rom/ets_sys.h"
|
||||
#include "soc/system_reg.h"
|
||||
#include "private/esp_coexist_debug.h"
|
||||
|
||||
#define TAG "esp_coex_adapter"
|
||||
|
||||
@@ -222,6 +223,15 @@ static int32_t esp_coex_internal_semphr_give_wrapper(void *semphr)
|
||||
return (int32_t)xSemaphoreGive(((modem_static_queue_t *)semphr)->handle);
|
||||
}
|
||||
|
||||
static int esp_coexist_debug_matrix_init_wrapper(int evt, int sig, bool rev)
|
||||
{
|
||||
#if CONFIG_ESP_COEX_GPIO_DEBUG
|
||||
return esp_coexist_debug_matrix_init(evt, sig, rev);
|
||||
#else
|
||||
return ESP_ERR_NOT_SUPPORTED;
|
||||
#endif
|
||||
}
|
||||
|
||||
coex_adapter_funcs_t g_coex_adapter_funcs = {
|
||||
._version = COEX_ADAPTER_VERSION,
|
||||
._task_yield_from_isr = esp_coex_common_task_yield_from_isr_wrapper,
|
||||
@@ -239,5 +249,6 @@ coex_adapter_funcs_t g_coex_adapter_funcs = {
|
||||
._timer_done = esp_coex_common_timer_done_wrapper,
|
||||
._timer_setfn = esp_coex_common_timer_setfn_wrapper,
|
||||
._timer_arm_us = esp_coex_common_timer_arm_us_wrapper,
|
||||
._debug_matrix_init = esp_coexist_debug_matrix_init_wrapper,
|
||||
._magic = COEX_ADAPTER_MAGIC,
|
||||
};
|
||||
|
Reference in New Issue
Block a user