Skip to content

Commit 31311c4

Browse files
yvesllnashif
authored andcommitted
tests: drivers: watchdog: Enable basic api test for frdm_mcxc444
Enable wdt_basic_api for frdm_mcxc444. Couple callback testcases with CONFIG_HAS_WDT_NO_CALLBACKS. Signed-off-by: Yves Wang <zhengjia.wang@nxp.com>
1 parent 2ea83f4 commit 31311c4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright 2025 NXP
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_WDT_DISABLE_AT_BOOT=y

tests/drivers/watchdog/wdt_basic_api/src/test_wdt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
* Copyright (c) 2018 Nordic Semiconductor.
3+
* Copyright 2025 NXP
34
*
45
* SPDX-License-Identifier: Apache-2.0
56
*/
@@ -134,8 +135,10 @@
134135
#define TIMEOUTS 1
135136
#endif
136137

138+
#if !(defined(CONFIG_HAS_WDT_NO_CALLBACKS) && CONFIG_HAS_WDT_NO_CALLBACKS)
137139
#define TEST_WDT_CALLBACK_1 (TIMEOUTS > 0)
138140
#define TEST_WDT_CALLBACK_2 (TIMEOUTS > 1)
141+
#endif
139142

140143

141144
static struct wdt_timeout_cfg m_cfg_wdt0;

0 commit comments

Comments
 (0)