From 0f94967856f0e0c4b2888c9de77abe64c5359b49 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Mon, 1 Jul 2019 20:01:43 +0200 Subject: [PATCH] bootloader: Call into the bootloader module from main(). --- src/bootloader/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index 16255f6..e7746c0 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -28,6 +28,7 @@ extern crate common; mod flash; +mod bootloader; use common::clock; use common::usb_serial; @@ -39,7 +40,10 @@ pub unsafe extern fn main() { if true { usb_serial::init(); + let mut b = bootloader::Bootloader::new(); + loop { + b.run(); } } } -- 2.30.2