fix(openthread): fix openthread radio spinel deinit

This commit is contained in:
Xu Si Yu
2024-12-30 14:29:41 +08:00
parent 5d60da974c
commit 20e7428c97
9 changed files with 20 additions and 7 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. * @brief Disable external coex.
* @return : ESP_OK - success, other - failed * @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 #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; 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(); esp_coex_external_stop();

View File

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

View File

@ -23,10 +23,9 @@
- esp_hw_support - esp_hw_support
examples/openthread/ot_br: examples/openthread/ot_br:
disable: enable:
- if: IDF_TARGET in ["esp32h2", "esp32p4"] - if: (SOC_WIFI_SUPPORTED == 1 and IDF_TARGET != "esp32c61") and CONFIG_NAME != "native_radio"
temporary: true - if: (SOC_WIFI_SUPPORTED == 1 and IDF_TARGET != "esp32c61") and (SOC_IEEE802154_SUPPORTED == 1 and CONFIG_NAME == "native_radio")
reason: target(s) not supported yet
disable_test: disable_test:
- if: IDF_TARGET in ["esp32", "esp32c3", "esp32c2", "esp32c6", "esp32s2"] - if: IDF_TARGET in ["esp32", "esp32c3", "esp32c2", "esp32c6", "esp32s2"]
temporary: true temporary: true

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

@ -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) cmake_minimum_required(VERSION 3.16)
include($ENV{IDF_PATH}/tools/cmake/project.cmake) 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 # Example connect
CONFIG_EXAMPLE_CONNECT_THREAD=n CONFIG_EXAMPLE_CONNECT_THREAD=n
#
# Wireless Coexistence
#
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n
CONFIG_EXTERNAL_COEX_ENABLE=n