[−][src]Trait esp8266_hal::prelude::_embedded_hal_watchdog_WatchdogEnable
Enables A watchdog timer to reset the processor if software is frozen or stalled.
Associated Types
type Time
Unit of time used by the watchdog
Required methods
fn start<T>(&mut self, period: T) where
T: Into<Self::Time>,
T: Into<Self::Time>,
Starts the watchdog with a given period, typically once this is done the watchdog needs to be kicked periodically or the processor is reset.
Implementors
impl WatchdogEnable for Watchdog[src]
type Time = (StageTimeout, StageTimeout)
fn start<T>(&mut self, period: T) where
T: Into<Self::Time>, [src]
T: Into<Self::Time>,
Start the watchdog timer
You can provide the time period either as a value in Milliseconds or Seconds, a single StageTimeOut or a pair of StageTimeout
If the period is provided as a time unit, the actual period will be an approximation of the provided period that is at least as long as the provided period or the maximum period of 53680 milliseconds.
Note that the default clock frequency of 80Mhz is assumed when converting from time units.