From 53e67d7eff6c7029dc2e3e042bcbeddfffd98d80 Mon Sep 17 00:00:00 2001 From: cyliang tw Date: Thu, 25 Jan 2024 13:47:52 +0800 Subject: [PATCH] tests: drivers: watchdog: wdt_basic_api: support numaker_pfm_m467 Add support for Nuvoton numaker board numaker_pfm_m467. Signed-off-by: cyliang tw --- .../watchdog/wdt_basic_api/boards/numaker_pfm_m467.overlay | 5 +++++ tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 tests/drivers/watchdog/wdt_basic_api/boards/numaker_pfm_m467.overlay diff --git a/tests/drivers/watchdog/wdt_basic_api/boards/numaker_pfm_m467.overlay b/tests/drivers/watchdog/wdt_basic_api/boards/numaker_pfm_m467.overlay new file mode 100644 index 000000000000000..78f321a84adaae3 --- /dev/null +++ b/tests/drivers/watchdog/wdt_basic_api/boards/numaker_pfm_m467.overlay @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +&wwdt { + status = "okay"; +}; diff --git a/tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c b/tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c index 76199a27d63514b..9415149c89f991c 100644 --- a/tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c +++ b/tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c @@ -98,6 +98,9 @@ #define WDT_NODE DT_INST(0, gd_gd32_fwdgt) #elif DT_HAS_COMPAT_STATUS_OKAY(zephyr_counter_watchdog) #define WDT_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(zephyr_counter_watchdog) +#elif DT_HAS_COMPAT_STATUS_OKAY(nuvoton_numaker_wwdt) +#define WDT_NODE DT_INST(0, nuvoton_numaker_wwdt) +#define TIMEOUTS 1 #elif DT_HAS_COMPAT_STATUS_OKAY(andestech_atcwdt200) #define WDT_NODE DT_INST(0, andestech_atcwdt200) #define TIMEOUTS 0