tests: drivers: watchdog: Pause during debugging
Enable the option to pause the watchdog if the MCU is halted by a debugger. Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
parent
c85e11c05b
commit
e53e5448ee
1 changed files with 3 additions and 3 deletions
|
@ -199,7 +199,7 @@ static int test_wdt_no_callback(void)
|
|||
TC_PRINT("Watchdog install error\n");
|
||||
}
|
||||
|
||||
err = wdt_setup(wdt, 0);
|
||||
err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG);
|
||||
if (err < 0) {
|
||||
TC_PRINT("Watchdog setup error\n");
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ static int test_wdt_callback_1(void)
|
|||
return TC_FAIL;
|
||||
}
|
||||
|
||||
err = wdt_setup(wdt, 0);
|
||||
err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG);
|
||||
if (err < 0) {
|
||||
TC_PRINT("Watchdog setup error\n");
|
||||
return TC_FAIL;
|
||||
|
@ -312,7 +312,7 @@ static int test_wdt_callback_2(void)
|
|||
return TC_FAIL;
|
||||
}
|
||||
|
||||
err = wdt_setup(wdt, 0);
|
||||
err = wdt_setup(wdt, WDT_OPT_PAUSE_HALTED_BY_DBG);
|
||||
if (err < 0) {
|
||||
TC_PRINT("Watchdog setup error\n");
|
||||
return TC_FAIL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue