-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/support_vendor_hook_for_rcp_spi' into 'master'
feat(openthread): support vendor hook for rcp spi Closes IDFGH-13771 See merge request espressif/esp-idf!33773
- Loading branch information
Showing
17 changed files
with
62 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include "common/new.hpp" | ||
#include "ncp_spi.hpp" | ||
|
||
namespace ot { | ||
namespace Ncp { | ||
|
||
static OT_DEFINE_ALIGNED_VAR(sNcpRaw, sizeof(NcpSpi), uint64_t); | ||
|
||
extern "C" void otNcpSpiInit(otInstance *aInstance) | ||
{ | ||
NcpSpi *ncpSpi = nullptr; | ||
Instance *instance = static_cast<Instance *>(aInstance); | ||
|
||
ncpSpi = new (&sNcpRaw) NcpSpi(instance); | ||
|
||
if (ncpSpi == nullptr || ncpSpi != NcpBase::GetNcpInstance()) | ||
{ | ||
OT_ASSERT(false); | ||
} | ||
} | ||
|
||
} // namespace Ncp | ||
} // namespace ot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_OPENTHREAD_RADIO_SPINEL_SPI=y |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
CONFIG_IDF_TARGET="esp32h2" | ||
CONFIG_IDF_TARGET_ESP32H2=y | ||
CONFIG_OPENTHREAD_CLI=n | ||
CONFIG_OPENTHREAD_CLI_ESP_EXTENSION=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONFIG_OPENTHREAD_RCP_SPI=y |
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
...device/light_sleep/sdkconfig.ci.sleepy_c6 → ...py_device/light_sleep/sdkconfig.ci.sleepy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.ci.sleepy_h2
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults.esp32c6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
CONFIG_IDF_TARGET="esp32c6" | ||
|
||
# | ||
# Sleep Config | ||
# | ||
|
1 change: 0 additions & 1 deletion
1
examples/openthread/ot_sleepy_device/light_sleep/sdkconfig.defaults.esp32h2
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters