bootloader: Define application offset.
[gps-watch.git] / src / bootloader / main.rs
index 198eb44e88355a21a44b746fb10d198a604a5054..f54b4bcea02d8dbf161bf9f50fefb31e4a140699 100644 (file)
 
 extern crate common;
 
+mod flash;
+mod bootloader;
+
+use common::clock;
+use common::usb_serial;
+
+const APPLICATION_ADDR: u32 = 0x0;
+
 #[no_mangle]
 pub unsafe extern fn main() {
-    loop {
+    clock::configure();
+
+    if true {
+        usb_serial::init();
+
+        let mut b = bootloader::Bootloader::new();
+
+        loop {
+            b.run();
+        }
     }
 }