projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bootloader: Call into the bootloader module from main().
[gps-watch.git]
/
src
/
bootloader
/
main.rs
diff --git
a/src/bootloader/main.rs
b/src/bootloader/main.rs
index 16255f601b4a0c2ab8874fe19d434174a3312a59..e7746c0086c5829017c7b8dba60d6a0629038eea 100644
(file)
--- 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();
}
}
}