mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-15 00:29:02 +00:00
According to the TRM, the WDT does not produce a reset until it expires twice. After expiring the WDT will set the INT flag if it is unset, and reset the MCU if INT is already set. Before this patch, watchdog_periodic() only un-sets the INT flag. This means that the behaviour of watchdog_periodic is underministic in that the value of the countdown timer will be different depending on when the function was called. This patch fixes this behaviour by also reloading the timout value. |
||
---|---|---|
.. | ||
batmon-sensor.c | ||
batmon-sensor.h | ||
cc26xx-uart.c | ||
cc26xx-uart.h | ||
contiki-watchdog.c | ||
gpio-interrupt.c | ||
gpio-interrupt.h | ||
oscillators.c | ||
oscillators.h | ||
soc-rtc.c | ||
soc-rtc.h | ||
uart1.h |