bootloader: Initialize systick on startup.
[gps-watch.git] / src / bootloader / main.rs
index d83702e734c5369c31cbabd84d6174e7aff12825..0f863fc4af6338c033edb1df7f847c7465196ce1 100644 (file)
@@ -31,6 +31,7 @@ mod flash;
 mod bootloader;
 
 use common::clock;
+use common::systick;
 use common::usb_serial;
 
 extern {
@@ -42,9 +43,10 @@ const APPLICATION_ADDR: u32 = 0x0;
 #[no_mangle]
 pub unsafe extern fn main() {
     clock::configure();
+    systick::init();
 
     if true {
-        usb_serial::init();
+        usb_serial::init(0xf055, 0x635c);
 
         let mut b = bootloader::Bootloader::new();