From: Tilman Sauerbeck Date: Sun, 17 Nov 2019 18:05:39 +0000 (+0100) Subject: bootloader: Disable the watchdog. X-Git-Url: http://git.code-monkey.de/?p=gps-watch.git;a=commitdiff_plain;h=7cd80ad07a3476f239f25a6f7534d17aaab6cc05 bootloader: Disable the watchdog. The watchdog gets enabled with a 1s timeout on POR, and I don't want to deal with that. --- 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();