mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
feat(coex): enable external coexistence command
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
#include "ot_led_strip.h"
|
||||
#endif
|
||||
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
#include "ext_coex_cmd.h"
|
||||
#endif
|
||||
|
||||
#define TAG "esp_ot_br"
|
||||
|
||||
#if CONFIG_OPENTHREAD_SUPPORT_HW_RESET_RCP
|
||||
@@ -98,6 +102,9 @@ void app_main(void)
|
||||
#if CONFIG_OPENTHREAD_CLI
|
||||
ot_console_start();
|
||||
ot_register_external_commands();
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
register_cmd_extcoex();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
|
||||
@@ -14,3 +14,5 @@ dependencies:
|
||||
path: ${IDF_PATH}/examples/openthread/ot_common_components/ot_examples_br
|
||||
ot_examples_common:
|
||||
path: ${IDF_PATH}/examples/openthread/ot_common_components/ot_examples_common
|
||||
esp-qa/coexist-cmd:
|
||||
version: "~0.0.1"
|
||||
|
||||
@@ -39,6 +39,10 @@
|
||||
#include "esp_ot_cli_extension.h"
|
||||
#endif // CONFIG_OPENTHREAD_CLI_ESP_EXTENSION
|
||||
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
#include "ext_coex_cmd.h"
|
||||
#endif
|
||||
|
||||
#define TAG "ot_esp_cli"
|
||||
|
||||
void app_main(void)
|
||||
@@ -61,6 +65,9 @@ void app_main(void)
|
||||
#if CONFIG_OPENTHREAD_CLI
|
||||
ot_console_start();
|
||||
ot_register_external_commands();
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
register_cmd_extcoex();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
static esp_openthread_config_t config = {
|
||||
|
||||
@@ -8,3 +8,5 @@ dependencies:
|
||||
path: ${IDF_PATH}/examples/openthread/ot_common_components/ot_led
|
||||
ot_examples_common:
|
||||
path: ${IDF_PATH}/examples/openthread/ot_common_components/ot_examples_common
|
||||
esp-qa/coexist-cmd:
|
||||
version: "~0.0.1"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: CC0-1.0
|
||||
*
|
||||
@@ -34,6 +34,9 @@
|
||||
#if CONFIG_IEEE802154_DEBUG
|
||||
#include "ieee802154_debug.h"
|
||||
#endif
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
#include "ext_coex_cmd.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define TAG "ot_esp_rcp"
|
||||
@@ -73,6 +76,9 @@ void app_main(void)
|
||||
#if CONFIG_IEEE802154_DEBUG
|
||||
register_ieee802154_debug_cmd();
|
||||
#endif
|
||||
#if CONFIG_ESP_COEX_EXTERNAL_COEXIST_ENABLE
|
||||
register_cmd_extcoex();
|
||||
#endif
|
||||
#endif
|
||||
|
||||
ESP_ERROR_CHECK(esp_openthread_start(&config));
|
||||
|
||||
@@ -4,3 +4,5 @@ dependencies:
|
||||
path: ${IDF_PATH}/examples/openthread/ot_common_components/ot_examples_common
|
||||
cmd_ieee802154_debug:
|
||||
path: ${IDF_PATH}/examples/ieee802154/components/cmd_ieee802154_debug
|
||||
esp-qa/coexist-cmd:
|
||||
version: "~0.0.1"
|
||||
|
||||
Reference in New Issue
Block a user