-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: benchmarks: power_consumption: uart: multicore app for nrf54h20
Add code for radio core so that it can be put into sleep and release resources. Signed-off-by: Piotr Kosycarz <[email protected]>
- Loading branch information
1 parent
d1e75ef
commit cb18831
Showing
8 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
tests/benchmarks/power_consumption/uart_async/Kconfig.sysbuild
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,10 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig" | ||
|
||
config REMOTE_BOARD | ||
string "The board used for remote target" |
17 changes: 17 additions & 0 deletions
17
tests/benchmarks/power_consumption/uart_async/sysbuild.cmake
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,17 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
if(NOT "${SB_CONFIG_REMOTE_BOARD}" STREQUAL "") | ||
ExternalZephyrProject_Add( | ||
APPLICATION remote_sleep_forever | ||
SOURCE_DIR ${APP_DIR}/../common/remote_sleep_forever | ||
BOARD ${SB_CONFIG_REMOTE_BOARD} | ||
) | ||
|
||
add_dependencies(uart_async remote_sleep_forever) | ||
sysbuild_add_dependencies(FLASH uart_async remote_sleep_forever) | ||
|
||
endif() |
1 change: 1 addition & 0 deletions
1
tests/benchmarks/power_consumption/uart_async/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
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 @@ | ||
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad" |
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
10 changes: 10 additions & 0 deletions
10
tests/benchmarks/power_consumption/uart_polling/Kconfig.sysbuild
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,10 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig" | ||
|
||
config REMOTE_BOARD | ||
string "The board used for remote target" |
17 changes: 17 additions & 0 deletions
17
tests/benchmarks/power_consumption/uart_polling/sysbuild.cmake
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,17 @@ | ||
# | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
if(NOT "${SB_CONFIG_REMOTE_BOARD}" STREQUAL "") | ||
ExternalZephyrProject_Add( | ||
APPLICATION remote_sleep_forever | ||
SOURCE_DIR ${APP_DIR}/../common/remote_sleep_forever | ||
BOARD ${SB_CONFIG_REMOTE_BOARD} | ||
) | ||
|
||
add_dependencies(uart_polling remote_sleep_forever) | ||
sysbuild_add_dependencies(FLASH uart_polling remote_sleep_forever) | ||
|
||
endif() |
1 change: 1 addition & 0 deletions
1
tests/benchmarks/power_consumption/uart_polling/sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
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 @@ | ||
SB_CONFIG_REMOTE_BOARD="nrf54h20dk/nrf54h20/cpurad" |
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