X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fbootloader%2Fmain.rs;h=0d2954909572a02f26432aef8147c5894dfaff47;hb=69f57fcaee4e0a62192a87b21ed31142624ce009;hp=d81da1532baa5b0b41f3a05f5f1adc7e1cf3d084;hpb=819a110096caba3d31533649fc9e007bd93af302;p=gps-watch.git diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index d81da15..0d29549 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -40,8 +40,12 @@ extern { fn jump_to_application(address: u32); } +#[cfg(bootloader_type = "intermediate")] const APPLICATION_ADDR: u32 = 0x0; +#[cfg(bootloader_type = "final")] +const APPLICATION_ADDR: u32 = 0x8000; + fn bootloader_requested() -> bool { let start_ticks = systick::now();