From 7cd80ad07a3476f239f25a6f7534d17aaab6cc05 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 17 Nov 2019 19:05:39 +0100 Subject: [PATCH] bootloader: Disable the watchdog. The watchdog gets enabled with a 1s timeout on POR, and I don't want to deal with that. --- src/bootloader/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index afd28dc..ec71e15 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -35,6 +35,7 @@ use common::clock; use common::systick; use common::port; use common::gpio; +use common::watchdog; use common::usb_serial; type Reg32 = register::Register; @@ -78,6 +79,7 @@ fn bootloader_requested() -> bool { #[no_mangle] pub unsafe extern fn main() { + watchdog::disable(); clock::configure(); systick::init(); port::init(); -- 2.30.2