X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbootloader%2Fmain.rs;h=a5fe9832d30a7cf6d18ed9ca3e130e5477818163;hb=b7095b94fad1391e712a0030a47f2e52c2ae5f2b;hp=ec71e15abccc9ad0d910320ea72001f2d63213f1;hpb=7cd80ad07a3476f239f25a6f7534d17aaab6cc05;p=gps-watch.git diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index ec71e15..a5fe983 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -65,6 +65,12 @@ unsafe fn application_missing() -> bool { 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(); @@ -104,5 +110,7 @@ pub unsafe extern fn main() { disable_interrupts(); + clock::reset(); + jump_to_application(APPLICATION_ADDR); }