Skip to content

Commit 3fbda3c

Browse files
committed
samples: boards: st: power_mgmt: wkup_pins: add nucleo_c092rc
Add an overlay to the st specific power_mgmt wkup_pins sample for the nucleo_c092rc board. The user_button on pc13 is used as the wakeup-src. Signed-off-by: Thomas Stranger <[email protected]>
1 parent 2f7f9e8 commit 3fbda3c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2024 STMicroelectronics
3+
* Copyright (c) 2025 Thomas Stranger
4+
*
5+
* SPDX-License-Identifier: Apache-2.0
6+
*/
7+
8+
/ {
9+
aliases {
10+
wkup-src = &user_button;
11+
};
12+
};
13+
14+
&pwr {
15+
status = "okay";
16+
};

samples/boards/st/power_mgmt/wkup_pins/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ tests:
66
filter: dt_enabled_alias_with_parent_compat("wkup-src",
77
"gpio-keys") and dt_compat_enabled("st,stm32-pwr")
88
platform_allow:
9+
- nucleo_c092rc
910
- nucleo_g031k8
1011
- nucleo_l4r5zi
1112
- nucleo_u575zi_q

0 commit comments

Comments
 (0)