Skip to content

Commit 6a96ee8

Browse files
erwangocarlescufi
authored andcommitted
samples: boards: stm32: serial_wakeup: Minor changes
Cleanup sample yaml file and code comments. Enable PM_DEVICE_RUNTIME mode. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent b4fcbc4 commit 6a96ee8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
CONFIG_PM=y
22
CONFIG_PM_DEVICE=y
3-
CONFIG_PM_DEVICE_RUNTIME=n
4-
CONFIG_PM_DEVICE_RUNTIME_EXCLUSIVE=n
3+
CONFIG_PM_DEVICE_RUNTIME=y
4+
CONFIG_PM_DEVICE_RUNTIME_EXCLUSIVE=y
5+
56
CONFIG_SHELL=y
67

78
CONFIG_DEBUG=n

samples/boards/stm32/power_mgmt/serial_wakeup/sample.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ tests:
44
sample.boards.stm32.power_mgmt.serial_wakeup:
55
tags:
66
- UART
7-
- Wake
8-
- up
97
- power
108
harness: console
119
harness_config:

samples/boards/stm32/power_mgmt/serial_wakeup/src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ int main(void)
2424
#if CONFIG_PM_DEVICE
2525
/* In PM_DEVICE modes, enable device as a wakeup source will prevent
2626
* system to switch it off (clock off, set pins to sleep configuration, ...)
27-
* It is not requested in PM mode only since this mode will not
27+
* It is not requested in CONFIG_PM mode only as in this case, device is not
28+
* suspended before stop mode entry.
2829
*/
2930

3031
bool ret;

0 commit comments

Comments
 (0)