pub struct Wdt<TG, DM> { /* private fields */ }
Expand description
Watchdog timer
Implementations§
source§impl<TG, DM> Wdt<TG, DM>where
TG: TimerGroupInstance,
DM: Mode,
impl<TG, DM> Wdt<TG, DM>where
TG: TimerGroupInstance,
DM: Mode,
Watchdog driver
sourcepub unsafe fn set_wdt_enabled(enabled: bool)
pub unsafe fn set_wdt_enabled(enabled: bool)
Forcibly enable or disable the watchdog timer
§Safety
This bypasses the usual ownership rules for the peripheral, so users must take care to ensure that no driver instance is active for the timer.