Use u32 instead of Duration for IWDG

This commit is contained in:
chemicstry
2022-07-11 00:00:33 +03:00
parent 3bf1e1d4aa
commit d7d1e46a5f
2 changed files with 13 additions and 10 deletions

View File

@ -16,7 +16,7 @@ async fn main(_spawner: Spawner, p: Peripherals) {
let mut led = Output::new(p.PB7, Level::High, Speed::Low);
let mut wdt = IndependentWatchdog::new(p.IWDG, Duration::from_secs(1));
let mut wdt = IndependentWatchdog::new(p.IWDG, 1_000_000);
unsafe {
wdt.unleash();
}