Merge branch 'feature/support_hw_reset_when_handling_rcp_failure' into 'master'

feat(openthread): support hardware reset RCP while processing RCP failure

See merge request espressif/esp-idf!36270
This commit is contained in:
Zhang Wen Xu
2025-01-22 14:46:29 +08:00
5 changed files with 43 additions and 3 deletions
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022-2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2022-2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
@@ -266,8 +266,8 @@ otError SpiSpinelInterface::WaitForFrame(uint64_t timeout_us)
otError SpiSpinelInterface::HardwareReset(void)
{
if (mRcpFailureHandler) {
ConductSPITransaction(true, 0, 0); // clear
mRcpFailureHandler();
ConductSPITransaction(true, 0, 0); // clear
}
return OT_ERROR_NONE;
}