tests/drivers/watchdog: Review yaml file for stm32 window watchdog

Review tests applicability so that it only relies on watchdog
compatible availability. Additionally, tweak APB prescaler
in case of window watchdog test, so that timeout value can be
achieved.

Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2021-01-27 11:21:09 +01:00 committed by Anas Nashif
commit a573dfc298
3 changed files with 13 additions and 16 deletions

View file

@ -0,0 +1,7 @@
&wwdg {
status = "okay";
};
&iwdg {
status = "disabled";
};

View file

@ -1,11 +0,0 @@
# 2MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=2000000
# SYSCLK selection
CONFIG_CLOCK_STM32_SYSCLK_SRC_MSI=y
# produce 2MHz clock at MSI RC output
CONFIG_CLOCK_STM32_MSI_RANGE=5
# select buses prescalers
CONFIG_CLOCK_STM32_AHB_PRESCALER=1
CONFIG_CLOCK_STM32_APB1_PRESCALER=1
CONFIG_CLOCK_STM32_APB2_PRESCALER=1

View file

@ -2,13 +2,14 @@ tests:
drivers.watchdog:
depends_on: watchdog
tags: drivers watchdog
filter: not CONFIG_WDT_SAM
platform_exclude: nucleo_l496zg nucleo_f401re mec15xxevb_assy6853
drivers.watchdog.nucleo_l496zg:
filter: not (CONFIG_WDT_SAM or dt_compat_enabled("st,stm32-window-watchdog"))
platform_exclude: mec15xxevb_assy6853
drivers.watchdog.stm32wwdg:
depends_on: watchdog
tags: drivers watchdog
extra_args: CONF_FILE="prj.conf;nucleo_l496zg.conf"
platform_allow: nucleo_l496zg
filter: dt_compat_enabled("st,stm32-window-watchdog")
extra_configs:
- CONFIG_CLOCK_STM32_APB1_PRESCALER=16
drivers.watchdog.mec15xxevb_assy6853:
depends_on: watchdog
tags: drivers watchdog