From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 08:06:12 +0000 (+0200) Subject: bootloader: Define application offset. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=2b98183f540c404ee03f9327f087ae1d119326d1;p=gps-watch.git bootloader: Define application offset. This defines the APPLICATION_ADDR constant and sets it to the offset of the vector table to jump to after the bootloader is done. --- diff --git a/src/bootloader/main.rs b/src/bootloader/main.rs index e7746c0..f54b4bc 100644 --- a/src/bootloader/main.rs +++ b/src/bootloader/main.rs @@ -33,6 +33,8 @@ mod bootloader; use common::clock; use common::usb_serial; +const APPLICATION_ADDR: u32 = 0x0; + #[no_mangle] pub unsafe extern fn main() { clock::configure();