aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4
diff options
context:
space:
mode:
authorchemicstry <[email protected]>2022-07-11 00:00:33 +0300
committerchemicstry <[email protected]>2022-07-11 00:00:33 +0300
commitd7d1e46a5fb115b0993d4ac37c0152b1dd5f78c3 (patch)
treedb4e083ec2bc45ad09893dce4c1312b9aadf9fd0 /examples/stm32f4
parent3bf1e1d4aaefeeed9836060ea62b9d064e4fbe58 (diff)
Use u32 instead of Duration for IWDG
Diffstat (limited to 'examples/stm32f4')
-rw-r--r--examples/stm32f4/src/bin/wdt.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/wdt.rs b/examples/stm32f4/src/bin/wdt.rs
index a23cfe9c0..bfc487c31 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) {
16 16
17 let mut led = Output::new(p.PB7, Level::High, Speed::Low); 17 let mut led = Output::new(p.PB7, Level::High, Speed::Low);
18 18
19 let mut wdt = IndependentWatchdog::new(p.IWDG, Duration::from_secs(1)); 19 let mut wdt = IndependentWatchdog::new(p.IWDG, 1_000_000);
20 unsafe { 20 unsafe {
21 wdt.unleash(); 21 wdt.unleash();
22 } 22 }