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:
206f765
)
bootloader: Define application offset.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 7 Jul 2019 08:06:12 +0000
(10:06 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000
(20:38 +0100)
This defines the APPLICATION_ADDR constant and sets it to the
offset of the vector table to jump to after the bootloader is done.
src/bootloader/main.rs
patch
|
blob
|
history
diff --git
a/src/bootloader/main.rs
b/src/bootloader/main.rs
index e7746c0086c5829017c7b8dba60d6a0629038eea..f54b4bcea02d8dbf161bf9f50fefb31e4a140699 100644
(file)
--- 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();