Skip to content

Commit d60a590

Browse files
committed
Merge branch 'fix/remove_the_duplicate_macro_definition_v5.4' into 'release/v5.4'
fix(openthread): remove the duplicate macro definition (v5.4) See merge request espressif/esp-idf!43709
2 parents 5e45ef9 + 74d2a5f commit d60a590

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

components/openthread/include/esp_radio_spinel.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ extern "C" {
1818

1919
#define ESP_SPINEL_LOG_TAG "ESP_RADIO_SPINEL"
2020

21-
#define SPINEL_PROP_VENDOR_ESP_SET_COORDINATOR (SPINEL_PROP_VENDOR_ESP__BEGIN + 1) /* Vendor command for coordinator.*/
22-
23-
#define SPINEL_PROP_VENDOR_ESP_SET_PENDINGMODE (SPINEL_PROP_VENDOR_ESP__BEGIN + 2) /* Vendor command for pending mode.*/
24-
2521
typedef enum {
2622
ESP_RADIO_SPINEL_ZIGBEE = 0x0, /* The index of Zigbee.*/
2723
ESP_RADIO_SPINEL_OPENTHREAD = 0x1, /* The index of OpenThread.*/

components/openthread/private_include/esp_openthread_ncp.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <spinel.h>
87
#include <esp_openthread.h>
98

10-
#if CONFIG_OPENTHREAD_NCP_VENDOR_HOOK
11-
12-
#define SPINEL_PROP_VENDOR_ESP_SET_COORDINATOR (SPINEL_PROP_VENDOR_ESP__BEGIN + 1)
13-
14-
#define SPINEL_PROP_VENDOR_ESP_SET_PENDINGMODE (SPINEL_PROP_VENDOR_ESP__BEGIN + 2)
15-
16-
#define SPINEL_PROP_VENDOR_ESP_COEX_EVENT (SPINEL_PROP_VENDOR_ESP__BEGIN + 3)
17-
18-
#endif
19-
209
#ifdef __cplusplus
2110
extern "C" {
2211
#endif
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include "spinel.h"
8+
9+
#define SPINEL_PROP_VENDOR_ESP_SET_COORDINATOR (SPINEL_PROP_VENDOR_ESP__BEGIN + 1) /* Vendor command for coordinator.*/
10+
11+
#define SPINEL_PROP_VENDOR_ESP_SET_PENDINGMODE (SPINEL_PROP_VENDOR_ESP__BEGIN + 2) /* Vendor command for pending mode.*/
12+
13+
#define SPINEL_PROP_VENDOR_ESP_COEX_EVENT (SPINEL_PROP_VENDOR_ESP__BEGIN + 3)

components/openthread/src/ncp/esp_openthread_ncp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "sdkconfig.h"
88
#include "esp_ieee802154.h"
99
#include "esp_openthread_ncp.h"
10+
#include "esp_spinel_ncp_vendor_macro.h"
1011
#include "ncp_base.hpp"
1112

1213
#if (CONFIG_ESP_COEX_SW_COEXIST_ENABLE || CONFIG_EXTERNAL_COEX_ENABLE)

components/openthread/src/spinel/esp_radio_spinel.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "esp_radio_spinel.h"
1313
#include "esp_radio_spinel_platform.h"
1414
#include "esp_radio_spinel_adapter.hpp"
15+
#include "esp_spinel_ncp_vendor_macro.h"
1516
#include "esp_radio_spinel_uart_interface.hpp"
1617
#include "spinel_driver.hpp"
1718
#include "openthread/link.h"

0 commit comments

Comments
 (0)