bootloader: Initialize the usb_serial module on startup.
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 17 Jun 2019 19:51:08 +0000 (21:51 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Sun, 7 Jul 2019 18:34:42 +0000 (20:34 +0200)
src/bootloader/main.rs

index 9a0cbb4f48706007e934c35d35b7ffa1db38dcb3..fbd3aa0c01c03d6bbe34352e97b5349920f1a6ad 100644 (file)
 extern crate common;
 
 use common::clock;
+use common::usb_serial;
 
 #[no_mangle]
 pub unsafe extern fn main() {
     clock::configure();
 
-    loop {
+    if true {
+        usb_serial::init();
+
+        loop {
+        }
     }
 }