std :: hal::watchdog
Struct std::Watchdog
generic<C: WatchdogChip> struct Watchdog {
&volatile unsigned int base;
unsigned int timeout;
C chip;
}Fields
MMIO base address
timeout period (chip-specific units, see above)
Methods
§
static struct Watchdog<C> new(&volatile unsigned int base, unsigned int timeout)source · definitionInitialize the watchdog at base with the given timeout; the chip type
comes from the target.
Enable the watchdog timer (cannot be disabled on most hardware).
Feed (kick) the watchdog to prevent reset.
Check if a watchdog reset occurred. Returns 1 if the previous reset was a WDT reset.