bootloader: Disable the watchdog.
[gps-watch.git] / src / bootloader / main.rs
index afd28dc994ca0794e33eb7f8d62d69dfda88d7db..ec71e15abccc9ad0d910320ea72001f2d63213f1 100644 (file)
@@ -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<u32>;
@@ -78,6 +79,7 @@ fn bootloader_requested() -> bool {
 
 #[no_mangle]
 pub unsafe extern fn main() {
+    watchdog::disable();
     clock::configure();
     systick::init();
     port::init();