Skip to content
Commit 0c4f1987 authored by Gerson Fernando Budke's avatar Gerson Fernando Budke Committed by Benjamin Cabé
Browse files

tests: watchdog: Add missing wdt_disable in API test



The current watchdog tests assume that watchdog can be configured once
it is running. This is a concept that do not work in practice becasue
most of watchdog once configured will be locked. The tests should take
that in consideration before enable another test. The other important
details is that even when a watchdog is running it should be disable in
some controllers to allow reconfigure.

This change was tested with SAM4L watchdog controller #83475 which
allows reconfigure the watchdog once it is enabled. To do the correct
configuration it is necessary execute the wdt_disable() call.

The change will validate if the watchdog can be disabled for those
cases were the controller is not locked and fallback the test on the
contrary.

Signed-off-by: default avatarGerson Fernando Budke <nandojve@gmail.com>
parent ad4ed55c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment