tests: pm: add soc pm tests and sample for stm32f4x chip
Add soc power management test and blinky sample for the nucleo_f429zi board. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>
This commit is contained in:
parent
43ef398614
commit
e6c7a4c968
5 changed files with 28 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
# Increase IDLE stack for the IDLE timer
|
||||||
|
CONFIG_IDLE_STACK_SIZE=640
|
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Google LLC
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,cortex-m-idle-timer = &rtc;
|
||||||
|
};
|
||||||
|
};
|
|
@ -12,7 +12,9 @@ tests:
|
||||||
- "Device ready"
|
- "Device ready"
|
||||||
filter: dt_compat_enabled("zephyr,power-state") and
|
filter: dt_compat_enabled("zephyr,power-state") and
|
||||||
dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
|
dt_enabled_alias_with_parent_compat("led0", "gpio-leds") and
|
||||||
dt_compat_enabled("st,stm32-lptim")
|
(dt_compat_enabled("st,stm32-lptim") or
|
||||||
|
dt_chosen_enabled("zephyr,cortex-m-idle-timer"))
|
||||||
extra_args: "CONFIG_DEBUG=y"
|
extra_args: "CONFIG_DEBUG=y"
|
||||||
integration_platforms:
|
integration_platforms:
|
||||||
- nucleo_wb55rg
|
- nucleo_wb55rg
|
||||||
|
- nucleo_f429zi
|
||||||
|
|
11
tests/subsys/pm/power_mgmt_soc/boards/nucleo_f429zi.overlay
Normal file
11
tests/subsys/pm/power_mgmt_soc/boards/nucleo_f429zi.overlay
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023 Google LLC
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,cortex-m-idle-timer = &rtc;
|
||||||
|
};
|
||||||
|
};
|
|
@ -5,6 +5,7 @@ tests:
|
||||||
- cc1352r1_launchxl
|
- cc1352r1_launchxl
|
||||||
- mec15xxevb_assy6853
|
- mec15xxevb_assy6853
|
||||||
- mec1501modular_assy6885
|
- mec1501modular_assy6885
|
||||||
|
- nucleo_f429zi
|
||||||
- nucleo_wb55rg
|
- nucleo_wb55rg
|
||||||
- nucleo_l476rg
|
- nucleo_l476rg
|
||||||
- twr_ke18f
|
- twr_ke18f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue