feat(openthread): update openthread submodule and border router lib

This commit is contained in:
Xu Si Yu
2024-10-29 11:56:16 +08:00
parent 5e056de1e7
commit f41b43dc43
13 changed files with 159 additions and 12 deletions

View File

@@ -66,6 +66,16 @@ esp_netif_t *esp_openthread_get_backbone_netif(void);
*/
void esp_openthread_register_rcp_failure_handler(esp_openthread_rcp_failure_handler handler);
/**
* @brief Registers the callback for spinel compatibility error.
*
* @note This function must be called before esp_openthread_init.
*
* @param[in] callback The callback.
*
*/
void esp_openthread_set_compatibility_error_callback(esp_openthread_compatibility_error_callback callback);
/**
* @brief Deinitializes the connection to RCP.
*

View File

@@ -200,6 +200,8 @@ typedef struct {
typedef void (*esp_openthread_rcp_failure_handler)(void);
typedef void (*esp_openthread_compatibility_error_callback)(void);
#ifdef __cplusplus
}
#endif

View File

@@ -46,6 +46,7 @@ typedef struct {
typedef void (*esp_radio_spinel_rcp_failure_handler)(void); /* The handler for rcp failure.*/
typedef esp_err_t (*esp_radio_spinel_uart_init_handler)(const esp_radio_spinel_uart_config_t *uart_config_t, int *uart_fd); /* The handler for UART initialization.*/
typedef esp_err_t (*esp_radio_spinel_uart_deinit_handler)(const esp_radio_spinel_uart_config_t *uart_config_t, int *uart_fd); /* The handler for UART deinitialization.*/
typedef void (*esp_radio_spinel_compatibility_error_callback)(void);
typedef struct
{
@@ -391,6 +392,16 @@ esp_err_t esp_radio_spinel_rcp_deinit(esp_radio_spinel_idx_t idx);
*/
esp_err_t esp_radio_spinel_rcp_version_get(char *running_rcp_version, esp_radio_spinel_idx_t idx);
/**
* @brief Registers the callback for spinel compatibility error.
*
* @note This function must be called before esp_radio_spinel_init.
*
* @param[in] callback The callback.
*
*/
void esp_radio_spinel_set_compatibility_error_callback(esp_radio_spinel_compatibility_error_callback callback);
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,28 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Get frame counter.
*
* @param[in] idx The index of 802.15.4 related protocol stack.
*
* @return
* - The frame counter
*
*/
uint32_t esp_radio_spinel_extern_get_frame_counter(esp_radio_spinel_idx_t idx);
#ifdef __cplusplus
}
#endif