diff options
author | chemicstry <chemicstry@gmail.com> | 2022-07-11 00:00:33 +0300 |
---|---|---|
committer | chemicstry <chemicstry@gmail.com> | 2022-07-11 00:00:33 +0300 |
commit | d7d1e46a5fb115b0993d4ac37c0152b1dd5f78c3 (patch) | |
tree | db4e083ec2bc45ad09893dce4c1312b9aadf9fd0 /examples/stm32f4/src/bin | |
parent | 3bf1e1d4aaefeeed9836060ea62b9d064e4fbe58 (diff) | |
download | embassy-d7d1e46a5fb115b0993d4ac37c0152b1dd5f78c3.zip |
Use u32 instead of Duration for IWDG
Diffstat (limited to 'examples/stm32f4/src/bin')
-rw-r--r-- | examples/stm32f4/src/bin/wdt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/wdt.rs b/examples/stm32f4/src/bin/wdt.rs index a23cfe9c..bfc487c3 100644 --- a/examples/stm32f4/src/bin/wdt.rs +++ b/examples/stm32f4/src/bin/wdt.rs @@ -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(); } |