mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(openthread): support rcp based on USB Serial JTAG
This commit is contained in:
committed by
Xu Si Yu
parent
6ce783f89c
commit
c400fb4ff6
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -64,6 +64,18 @@ esp_err_t esp_openthread_host_cli_usb_init(const esp_openthread_platform_config_
|
||||
*/
|
||||
esp_err_t esp_openthread_host_rcp_uart_init(const esp_openthread_platform_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Initializes the RCP USB for OpenThread host connection.
|
||||
*
|
||||
* @param[in] config The platform configuration.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK on success
|
||||
* - ESP_ERROR on failure
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_openthread_host_rcp_usb_init(const esp_openthread_platform_config_t *config);
|
||||
|
||||
/**
|
||||
* @brief Deintializes the uart for OpenThread host connection.
|
||||
*
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
#ifdef OPENTHREAD_CONFIG_NCP_HDLC_ENABLE
|
||||
#error `OPENTHREAD_CONFIG_NCP_HDLC_ENABLE` is redefined.
|
||||
#endif
|
||||
#define OPENTHREAD_CONFIG_NCP_HDLC_ENABLE CONFIG_OPENTHREAD_RCP_UART
|
||||
#define OPENTHREAD_CONFIG_NCP_HDLC_ENABLE (CONFIG_OPENTHREAD_RCP_UART || CONFIG_OPENTHREAD_RCP_USB_SERIAL_JTAG)
|
||||
|
||||
/**
|
||||
* @def OPENTHREAD_LIB_SPINEL_RX_FRAME_BUFFER_SIZE
|
||||
|
||||
Reference in New Issue
Block a user