fix(openthread): fix openthread radio spinel deinit

This commit is contained in:
Xu Si Yu 2024-12-30 14:29:41 +08:00
parent 2e6a6c0dd5
commit c9c0d3f7b1
10 changed files with 20 additions and 5 deletions

View File

@ -164,7 +164,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type,
* @brief Disable external coex.
* @return : ESP_OK - success, other - failed
*/
esp_err_t esp_disable_extern_coex_gpio_pin();
esp_err_t esp_disable_extern_coex_gpio_pin(void);
#if SOC_EXTERNAL_COEX_ADVANCE
/**

View File

@ -275,7 +275,7 @@ esp_err_t esp_enable_extern_coex_gpio_pin(external_coex_wire_t wire_type, esp_ex
return ESP_OK;
}
esp_err_t esp_disable_extern_coex_gpio_pin()
esp_err_t esp_disable_extern_coex_gpio_pin(void)
{
esp_coex_external_stop();

View File

@ -156,6 +156,8 @@ esp_err_t esp_openthread_rcp_init(void)
void esp_openthread_radio_deinit(void)
{
s_radio.Deinit();
s_spinel_driver.Deinit();
s_spinel_interface.GetSpinelInterface().Disable();
esp_openthread_platform_workflow_unregister(radiospinel_workflow);
}

View File

@ -22,7 +22,8 @@
examples/openthread/ot_br:
enable:
- if: SOC_WIFI_SUPPORTED == 1 and IDF_TARGET != "esp32c61"
- if: (SOC_WIFI_SUPPORTED == 1 and IDF_TARGET != "esp32c61") and CONFIG_NAME != "native_radio"
- if: (SOC_WIFI_SUPPORTED == 1 and IDF_TARGET != "esp32c61") and (SOC_IEEE802154_SUPPORTED == 1 and CONFIG_NAME == "native_radio")
disable_test:
- if: IDF_TARGET not in ["esp32s3"]
reason: only test on esp32s3

View File

@ -0,0 +1,2 @@
CONFIG_EXTERNAL_COEX_ENABLE=y
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n

View File

@ -0,0 +1,2 @@
CONFIG_OPENTHREAD_RADIO_NATIVE=y
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=y

View File

@ -1,3 +1,3 @@
idf_component_register(SRCS "esp_ot_rcp.c"
PRIV_REQUIRES esp_event nvs_flash openthread
PRIV_REQUIRES esp_coex esp_event nvs_flash openthread
INCLUDE_DIRS ".")

View File

@ -0,0 +1,2 @@
CONFIG_EXTERNAL_COEX_ENABLE=y
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n

View File

@ -3,4 +3,4 @@
cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp_ot_cli)
project(esp_ot_trel)

View File

@ -44,3 +44,9 @@ CONFIG_COMPILER_OPTIMIZATION_SIZE=y
# Example connect
CONFIG_EXAMPLE_CONNECT_THREAD=n
#
# Wireless Coexistence
#
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n
CONFIG_EXTERNAL_COEX_ENABLE=n