Skip to content

Commit 9cf892a

Browse files
committed
Merge branch 'fix/fix_an_ot_compile_issue' into 'master'
fix(openthread): surround the rcp init logic with a macro See merge request espressif/esp-idf!33835
2 parents 4f467d0 + ce022c4 commit 9cf892a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

components/openthread/src/esp_openthread_platform.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,18 @@ static esp_err_t esp_openthread_host_interface_init(const esp_openthread_platfor
9494
{
9595
esp_openthread_host_connection_mode_t host_mode = get_host_connection_mode();
9696
switch (host_mode) {
97+
#if CONFIG_OPENTHREAD_RCP_SPI
9798
case HOST_CONNECTION_MODE_RCP_SPI:
9899
ESP_RETURN_ON_ERROR(esp_openthread_host_rcp_spi_init(config), OT_PLAT_LOG_TAG,
99100
"esp_openthread_host_rcp_spi_init failed");
100101
break;
102+
#endif
103+
#if CONFIG_OPENTHREAD_RCP_UART
101104
case HOST_CONNECTION_MODE_RCP_UART:
102105
ESP_RETURN_ON_ERROR(esp_openthread_host_rcp_uart_init(config), OT_PLAT_LOG_TAG,
103106
"esp_openthread_host_rcp_uart_init failed");
104107
break;
108+
#endif
105109
#if CONFIG_OPENTHREAD_CONSOLE_TYPE_UART
106110
case HOST_CONNECTION_MODE_CLI_UART:
107111
ESP_RETURN_ON_ERROR(esp_openthread_host_cli_uart_init(config), OT_PLAT_LOG_TAG,

components/openthread/src/port/esp_openthread_spi_slave.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include <string.h>
2626
#include "driver/gpio.h"
2727
#include "driver/spi_slave.h"
28-
#include "esp_private/cache_utils.h"
2928
#include "esp_private/spi_slave_internal.h"
3029
#include "ncp/ncp_config.h"
3130
#include "openthread/error.h"

0 commit comments

Comments
 (0)