-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: boards: power_mgmt use wakeup pins of the stm32l4x boards
This PR is changing the method to use the user button to be the wakeup source to exit from lower power mode Signed-off-by: Francois Ramu <[email protected]>
- Loading branch information
Showing
5 changed files
with
64 additions
and
42 deletions.
There are no files selected for viewing
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
17 changes: 17 additions & 0 deletions
17
samples/boards/st/power_mgmt/standby_shutdown/boards/disco_l475_iot1.overlay
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 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
wkup-src = &user_button; | ||
}; | ||
}; | ||
|
||
&pwr { | ||
status = "okay"; | ||
/delete-property/ wkup-pins-pol; | ||
/delete-property/ wkup-pins-pupd; | ||
}; |
17 changes: 17 additions & 0 deletions
17
samples/boards/st/power_mgmt/standby_shutdown/boards/nucleo_l476rg.overlay
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 STMicroelectronics | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/ { | ||
aliases { | ||
wkup-src = &user_button; | ||
}; | ||
}; | ||
|
||
&pwr { | ||
status = "okay"; | ||
/delete-property/ wkup-pins-pol; | ||
/delete-property/ wkup-pins-pupd; | ||
}; |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ CONFIG_PM_DEVICE=n | |
CONFIG_PM_DEVICE_RUNTIME=n | ||
CONFIG_HWINFO=y | ||
CONFIG_POWEROFF=y | ||
CONFIG_STM32_WKUP_PINS=y |
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