Skip to content

Commit c588074

Browse files
committed
tests: driver: watchdog: add marco define for Renesas RX
The Renesas RX watchdog doesn't support PAUSE_HALTED_BY_DBG flag, so need to update the WDT_SETUP_FLAGS for this test Signed-off-by: Quy Tran <[email protected]>
1 parent 58e92a7 commit c588074

File tree

1 file changed

+4
-0
lines changed
  • tests/drivers/watchdog/wdt_basic_reset_none/src

1 file changed

+4
-0
lines changed

tests/drivers/watchdog/wdt_basic_reset_none/src/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#define WDT_SETUP_FLAGS 0
2828
#define WDT_TIMEOUT K_TICKS(WDT_TIMEOUT_VALUE)
2929
#define SLEEP_TIME K_TICKS(CONFIG_TEST_WDT_SLEEP_TIME)
30+
#elif defined(CONFIG_IWDT_RENESAS_RX)
31+
#define WDT_SETUP_FLAGS 0
32+
#define WDT_TIMEOUT K_MSEC(WDT_TIMEOUT_VALUE)
33+
#define SLEEP_TIME K_MSEC(CONFIG_TEST_WDT_SLEEP_TIME)
3034
#else
3135
#define WDT_SETUP_FLAGS WDT_OPT_PAUSE_HALTED_BY_DBG
3236
#define WDT_TIMEOUT K_MSEC(WDT_TIMEOUT_VALUE)

0 commit comments

Comments
 (0)