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:
Dawid Niedzwiecki 2023-11-10 15:43:55 +01:00 committed by Fabio Baltieri
commit e6c7a4c968
5 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,2 @@
# Increase IDLE stack for the IDLE timer
CONFIG_IDLE_STACK_SIZE=640

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2023 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,cortex-m-idle-timer = &rtc;
};
};

View file

@ -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

View file

@ -0,0 +1,11 @@
/*
* Copyright (c) 2023 Google LLC
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,cortex-m-idle-timer = &rtc;
};
};

View file

@ -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