mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 09:09:10 -04:00
fix(openthread): fix openthread radio spinel deinit
This commit is contained in:
parent
2e6a6c0dd5
commit
c9c0d3f7b1
@ -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
|
||||
/**
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
2
examples/openthread/ot_br/sdkconfig.ci.ext_coex
Normal file
2
examples/openthread/ot_br/sdkconfig.ci.ext_coex
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_EXTERNAL_COEX_ENABLE=y
|
||||
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n
|
2
examples/openthread/ot_br/sdkconfig.ci.native_radio
Normal file
2
examples/openthread/ot_br/sdkconfig.ci.native_radio
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_OPENTHREAD_RADIO_NATIVE=y
|
||||
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=y
|
@ -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 ".")
|
||||
|
2
examples/openthread/ot_rcp/sdkconfig.ci.ext_coex
Normal file
2
examples/openthread/ot_rcp/sdkconfig.ci.ext_coex
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_EXTERNAL_COEX_ENABLE=y
|
||||
CONFIG_ESP_COEX_SW_COEXIST_ENABLE=n
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user