Skip to content

Commit 750ddf4

Browse files
nordic-pikrnordic-piks
authored andcommitted
tests: benchmarks: multicore: Add leds
Add leds indicating particular core activity to simplify the analysis of measurements Signed-off-by: Piotr Krzyzanowski <[email protected]>
1 parent f823635 commit 750ddf4

File tree

78 files changed

+489
-112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+489
-112
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/ {
2+
aliases {
3+
/delete-property/ led1;
4+
};
5+
};
6+
7+
/delete-node/ &led1;

tests/benchmarks/current_consumption/nfc_idle/sysbuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if(SB_CONFIG_SOC_NRF54H20)
88
# Add remote project
99
ExternalZephyrProject_Add(
1010
APPLICATION remote
11-
SOURCE_DIR ${SYSBUILD_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
11+
SOURCE_DIR ${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
1212
BOARD ${SB_CONFIG_REMOTE_BOARD}
1313
BOARD_REVISION ${BOARD_REVISION}
1414
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
8+
9+
/ {
10+
11+
aliases {
12+
led = &led0;
13+
/delete-property/ led1;
14+
};
15+
16+
};
17+
18+
/delete-node/ &led1;

tests/benchmarks/multicore/idle_hpu_temp_meas/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ CONFIG_PM_DEVICE=y
55
CONFIG_PM_DEVICE_RUNTIME=y
66
CONFIG_POWEROFF=y
77

8-
CONFIG_GPIO=n
98
CONFIG_BOOT_BANNER=n
109

1110
CONFIG_ASSERT=y

tests/benchmarks/multicore/idle_hpu_temp_meas/sysbuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ endif()
1111
# Add remote project
1212
ExternalZephyrProject_Add(
1313
APPLICATION remote
14-
SOURCE_DIR ${SYSBUILD_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
14+
SOURCE_DIR ${ZEPHYR_NRF_MODULE_DIR}/tests/benchmarks/power_consumption/common/remote_sleep_forever
1515
BOARD ${SB_CONFIG_REMOTE_BOARD}
1616
BOARD_REVISION ${BOARD_REVISION}
1717
)

tests/benchmarks/multicore/idle_outside_of_main/remote/src/main.c renamed to tests/benchmarks/multicore/idle_outside_of_main/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <zephyr/kernel.h>
8-
9-
int main(void)
10-
{
11-
12-
k_msleep(2000);
13-
14-
return 0;
15-
}
7+
/ {
8+
aliases {
9+
led = &led0;
10+
/delete-property/ led1;
11+
};
12+
};
13+
14+
/delete-node/ &led1;

tests/benchmarks/multicore/idle_outside_of_main/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ CONFIG_PRINTK=n
1212
CONFIG_LOG=n
1313
CONFIG_CONSOLE=n
1414
CONFIG_UART_CONSOLE=n
15-
CONFIG_GPIO=n

tests/benchmarks/multicore/idle_outside_of_main/remote/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ cmake_minimum_required(VERSION 3.20.0)
99
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
1010
project(remote)
1111

12-
target_sources(app PRIVATE src/main.c)
12+
target_sources(app PRIVATE ../src/main.c)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
/ {
8+
aliases {
9+
led = &led1;
10+
};
11+
12+
leds {
13+
compatible = "gpio-leds";
14+
led1: led_1 {
15+
gpios = <&gpio9 1 GPIO_ACTIVE_HIGH>;
16+
label = "Green LED 1";
17+
};
18+
};
19+
};
20+
21+
&gpio9 {
22+
status = "okay";
23+
};
24+
25+
&gpiote130 {
26+
status = "okay";
27+
};

tests/benchmarks/multicore/idle_outside_of_main/remote/prj.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ CONFIG_POWEROFF=y
33
CONFIG_CONSOLE=n
44
CONFIG_UART_CONSOLE=n
55
CONFIG_SERIAL=n
6-
CONFIG_GPIO=n
6+
CONFIG_GPIO=y
77
CONFIG_NCS_BOOT_BANNER=n
88
CONFIG_BOOT_BANNER=n

0 commit comments

Comments
 (0)