File tree Expand file tree Collapse file tree 6 files changed +34
-29
lines changed
tests/benchmarks/multicore/idle_flpr Expand file tree Collapse file tree 6 files changed +34
-29
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ cmake_minimum_required(VERSION 3.20.0)
9
9
find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10
10
project (remote)
11
11
12
- target_sources (app PRIVATE src/main.c)
12
+ target_sources (app PRIVATE ../ src/main.c)
13
13
14
- if (DEFINED CONFIG_SOC_NRF54H20_CPUFLPR)
15
- message (STATUS "Power Mode handler for RISC V is included." )
16
- target_sources (app PRIVATE ../../common/power_off.c)
14
+ if (CONFIG_SOC_NRF54H20_CPUFLPR)
15
+ message (STATUS "Power Mode handler for RISC V is included." )
16
+ target_sources (app PRIVATE ../../common/power_off.c)
17
17
endif ()
Original file line number Diff line number Diff line change 5
5
*/
6
6
7
7
/ {
8
+ aliases {
9
+ led0 = &led1;
10
+ };
11
+
12
+ leds {
13
+ compatible = "gpio-leds";
14
+ led1: led_1 {
15
+ gpios = < &gpio9 0x1 0x0 >;
16
+ label = "Green LED 1";
17
+ };
18
+ };
19
+
8
20
cpus {
9
21
power-states {
10
22
wait: wait {
27
39
&cpu {
28
40
cpu-power-states = <&wait &hibernate>;
29
41
};
42
+
43
+ &gpio9 {
44
+ status = "okay";
45
+ };
46
+
47
+ &gpiote130 {
48
+ status = "okay";
49
+ owned-channels = <2>;
50
+ };
Original file line number Diff line number Diff line change 1
- CONFIG_LOG=y
1
+ CONFIG_LOG=n
2
2
CONFIG_CONSOLE=n
3
3
CONFIG_UART_CONSOLE=n
4
4
CONFIG_SERIAL=n
@@ -7,5 +7,4 @@ CONFIG_NCS_BOOT_BANNER=n
7
7
CONFIG_PRINTK=n
8
8
9
9
CONFIG_ASSERT=y
10
-
11
- CONFIG_NRF_REGTOOL_VERBOSITY=1
10
+ CONFIG_GPIO=y
Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ CONFIG_BOOT_BANNER=n
11
11
CONFIG_NCS_BOOT_BANNER=n
12
12
13
13
CONFIG_ASSERT=y
14
+ CONFIG_GPIO=y
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -46,11 +46,12 @@ int main(void)
46
46
while (1 ) {
47
47
timer_expired = false;
48
48
49
+ /* Turn ON LED */
50
+ ret = gpio_pin_set_dt (& led , 1 );
51
+
49
52
/* start a one-shot timer that expires after 1 second */
50
53
k_timer_start (& my_timer , K_MSEC (1000 ), K_NO_WAIT );
51
54
52
- /* Turn ON LED */
53
- ret = gpio_pin_set_dt (& led , 1 );
54
55
if (ret < 0 ) {
55
56
LOG_ERR ("Unable to turn on LED" );
56
57
}
@@ -62,16 +63,16 @@ int main(void)
62
63
k_yield ();
63
64
}
64
65
66
+ LOG_INF ("Run %d" , counter );
67
+ counter ++ ;
68
+
65
69
/* Turn OFF LED */
66
70
ret = gpio_pin_set_dt (& led , 0 );
67
71
if (ret < 0 ) {
68
72
LOG_ERR ("Unable to turn off LED" );
69
73
}
70
74
__ASSERT (ret == 0 , "Unable to turn off LED\n" );
71
75
72
- LOG_INF ("Run %d" , counter );
73
- counter ++ ;
74
-
75
76
/* Sleep / enter low power state */
76
77
k_msleep (CONFIG_TEST_SLEEP_DURATION_MS );
77
78
}
You can’t perform that action at this time.
0 commit comments