mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
openthread: support updating RCP with OTA over spinel
This commit is contained in:
50
components/openthread/include/esp_openthread_rcp_update.h
Normal file
50
components/openthread/include/esp_openthread_rcp_update.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "esp_openthread.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief This function triggers an RCP firmware update.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_FAIL
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_openthread_rcp_update_start(void);
|
||||
|
||||
/**
|
||||
* @brief This function writes sequential firmware update data to the RCP.
|
||||
*
|
||||
* @param[in] data The firmware data slice
|
||||
* @param[in] size The data slice size
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_FAIL
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_openthread_rcp_update_write(uint8_t *data, size_t size);
|
||||
|
||||
/**
|
||||
* @brief This function commits the firmware update and reboots the RCP.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK
|
||||
* - ESP_FAIL
|
||||
*
|
||||
*/
|
||||
esp_err_t esp_openthread_rcp_update_commit(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Submodule components/openthread/lib updated: be71bb0334...27aede10c1
Submodule components/openthread/openthread updated: c36c0e77a2...0298586f97
@@ -391,6 +391,8 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define OPENTHREAD_ENABLE_NCP_VENDOR_HOOK 1
|
||||
|
||||
#if CONFIG_OPENTHREAD_FTD
|
||||
#define OPENTHREAD_FTD 1
|
||||
#elif CONFIG_OPENTHREAD_MTD
|
||||
|
@@ -286,6 +286,8 @@
|
||||
*/
|
||||
#define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE 1
|
||||
|
||||
#define OPENTHREAD_ENABLE_NCP_VENDOR_HOOK 1
|
||||
|
||||
/**
|
||||
* The configurable definitions via Kconfig
|
||||
*/
|
||||
|
@@ -1,6 +1,8 @@
|
||||
# Name, Type, SubType, Offset, Size, Flags
|
||||
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap
|
||||
nvs, data, nvs, 0x9000, 0x6000,
|
||||
phy_init, data, phy, 0xf000, 0x1000,
|
||||
factory, app, factory, 0x10000, 1M,
|
||||
ot_storage, data, 0x3a, , 0x2000,
|
||||
otadata, data, ota, , 0x2000,
|
||||
phy_init, data, phy, , 0x1000,
|
||||
ot_storage, data, 0x3a, , 0x2000,
|
||||
ota_0, app, ota_0, , 900K,
|
||||
ota_1, app, ota_1, , 900K,
|
||||
|
|
Reference in New Issue
Block a user