mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
openthread: update openthread submodule
Roll OpenThread submodule and rename OpenThread config macros and api calls accordingly.
This commit is contained in:
@@ -10,11 +10,14 @@ if(CONFIG_OPENTHREAD_ENABLED)
|
|||||||
"openthread/src/lib/hdlc"
|
"openthread/src/lib/hdlc"
|
||||||
"openthread/src/lib/spinel"
|
"openthread/src/lib/spinel"
|
||||||
"openthread/src/ncp"
|
"openthread/src/ncp"
|
||||||
|
"openthread/examples/platforms/"
|
||||||
"private_include")
|
"private_include")
|
||||||
|
|
||||||
set(src_dirs
|
set(src_dirs
|
||||||
|
"openthread/examples/apps/cli"
|
||||||
"openthread/src/cli"
|
"openthread/src/cli"
|
||||||
"openthread/src/core/api"
|
"openthread/src/core/api"
|
||||||
|
"openthread/src/core/backbone_router"
|
||||||
"openthread/src/core/coap"
|
"openthread/src/core/coap"
|
||||||
"openthread/src/core/common"
|
"openthread/src/core/common"
|
||||||
"openthread/src/core/crypto"
|
"openthread/src/core/crypto"
|
||||||
@@ -30,7 +33,9 @@ if(CONFIG_OPENTHREAD_ENABLED)
|
|||||||
"openthread/src/lib/spinel"
|
"openthread/src/lib/spinel"
|
||||||
"port")
|
"port")
|
||||||
|
|
||||||
set(exclude_srcs "openthread/src/core/common/extension_example.cpp")
|
set(exclude_srcs
|
||||||
|
"openthread/examples/apps/cli/main.cpp"
|
||||||
|
"openthread/src/core/common/extension_example.cpp")
|
||||||
|
|
||||||
if(CONFIG_OPENTHREAD_FTD)
|
if(CONFIG_OPENTHREAD_FTD)
|
||||||
set(device_type "OPENTHREAD_FTD=1")
|
set(device_type "OPENTHREAD_FTD=1")
|
||||||
|
@@ -5,6 +5,7 @@ COMPONENT_ADD_INCLUDEDIRS := \
|
|||||||
include
|
include
|
||||||
|
|
||||||
COMPONENT_PRIV_INCLUDEDIRS := \
|
COMPONENT_PRIV_INCLUDEDIRS := \
|
||||||
|
openthread/examples/platforms \
|
||||||
openthread/src \
|
openthread/src \
|
||||||
openthread/src/core \
|
openthread/src/core \
|
||||||
openthread/src/lib/hdlc \
|
openthread/src/lib/hdlc \
|
||||||
@@ -13,9 +14,11 @@ COMPONENT_PRIV_INCLUDEDIRS := \
|
|||||||
private_include
|
private_include
|
||||||
|
|
||||||
COMPONENT_SRCDIRS := \
|
COMPONENT_SRCDIRS := \
|
||||||
|
openthread/examples/apps/cli \
|
||||||
openthread/src/cli \
|
openthread/src/cli \
|
||||||
openthread/src/core \
|
openthread/src/core \
|
||||||
openthread/src/core/api \
|
openthread/src/core/api \
|
||||||
|
openthread/src/core/backbone_router \
|
||||||
openthread/src/core/coap \
|
openthread/src/core/coap \
|
||||||
openthread/src/core/common \
|
openthread/src/core/common \
|
||||||
openthread/src/core/crypto \
|
openthread/src/core/crypto \
|
||||||
@@ -32,7 +35,8 @@ COMPONENT_SRCDIRS := \
|
|||||||
port
|
port
|
||||||
|
|
||||||
COMPONENT_OBJEXCLUDE := \
|
COMPONENT_OBJEXCLUDE := \
|
||||||
openthread/src/core/common/extension_example.o
|
openthread/examples/apps/cli/main.o \
|
||||||
|
openthread/src/core/common/extension_example.o \
|
||||||
|
|
||||||
IDF_VERSION_FOR_OPENTHREAD_PACKAGE := $(shell git -C $(COMPONENT_PATH) rev-parse --short HEAD)
|
IDF_VERSION_FOR_OPENTHREAD_PACKAGE := $(shell git -C $(COMPONENT_PATH) rev-parse --short HEAD)
|
||||||
OPENTHREAD_VERSION := $(shell git -C $(COMPONENT_PATH)/openthread rev-parse --short HEAD)
|
OPENTHREAD_VERSION := $(shell git -C $(COMPONENT_PATH)/openthread rev-parse --short HEAD)
|
||||||
|
@@ -180,12 +180,12 @@
|
|||||||
#define OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER 0
|
#define OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER 0
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def OPENTHREAD_CONFIG_NCP_UART_ENABLE
|
* @def OPENTHREAD_CONFIG_NCP_HDLC_ENABLE
|
||||||
*
|
*
|
||||||
* Define to 1 to enable NCP UART support.
|
* Define to 1 to enable NCP HDLC support.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#define OPENTHREAD_CONFIG_NCP_UART_ENABLE 1
|
#define OPENTHREAD_CONFIG_NCP_HDLC_ENABLE 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @def OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
* @def OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE
|
||||||
|
Submodule components/openthread/openthread updated: 93b6fea3aa...23bbde5c96
@@ -27,7 +27,7 @@
|
|||||||
#include "esp_vfs_dev.h"
|
#include "esp_vfs_dev.h"
|
||||||
#include "common/logging.hpp"
|
#include "common/logging.hpp"
|
||||||
#include "driver/uart.h"
|
#include "driver/uart.h"
|
||||||
#include "openthread/platform/uart.h"
|
#include "utils/uart.h"
|
||||||
|
|
||||||
static int s_uart_port;
|
static int s_uart_port;
|
||||||
static int s_uart_fd;
|
static int s_uart_fd;
|
||||||
|
@@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#define TAG "ot_esp_cli"
|
#define TAG "ot_esp_cli"
|
||||||
|
|
||||||
|
extern void otAppCliInit(otInstance *instance);
|
||||||
|
|
||||||
static void ot_task_worker(void *aContext)
|
static void ot_task_worker(void *aContext)
|
||||||
{
|
{
|
||||||
esp_openthread_platform_config_t config = {
|
esp_openthread_platform_config_t config = {
|
||||||
@@ -84,7 +86,7 @@ static void ot_task_worker(void *aContext)
|
|||||||
assert(instance != NULL);
|
assert(instance != NULL);
|
||||||
|
|
||||||
esp_openthread_lock_acquire(portMAX_DELAY);
|
esp_openthread_lock_acquire(portMAX_DELAY);
|
||||||
otCliUartInit(instance);
|
otAppCliInit(instance);
|
||||||
esp_openthread_lock_release();
|
esp_openthread_lock_release();
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
|
Reference in New Issue
Block a user