projects
/
gps-watch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
application: Set up pins for the display.
[gps-watch.git]
/
src
/
bootloader
/
main.rs
diff --git
a/src/bootloader/main.rs
b/src/bootloader/main.rs
index ec71e15abccc9ad0d910320ea72001f2d63213f1..a5fe9832d30a7cf6d18ed9ca3e130e5477818163 100644
(file)
--- a/
src/bootloader/main.rs
+++ b/
src/bootloader/main.rs
@@
-65,6
+65,12
@@
unsafe fn application_missing() -> bool {
first_app_word.read() == 0xffffffff
}
first_app_word.read() == 0xffffffff
}
+#[cfg(bootloader_type = "intermediate")]
+fn bootloader_requested() -> bool {
+ true
+}
+
+#[cfg(bootloader_type = "final")]
fn bootloader_requested() -> bool {
let start_ticks = systick::now();
fn bootloader_requested() -> bool {
let start_ticks = systick::now();
@@
-104,5
+110,7
@@
pub unsafe extern fn main() {
disable_interrupts();
disable_interrupts();
+ clock::reset();
+
jump_to_application(APPLICATION_ADDR);
}
jump_to_application(APPLICATION_ADDR);
}