projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d34da2e
)
bootloader: Call into the bootloader module from main().
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 1 Jul 2019 18:01:43 +0000
(20:01 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000
(20:38 +0100)
src/bootloader/main.rs
patch
|
blob
|
history
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();
}
}
}