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:
e0f8b13
)
bootloader: Prepare implementation of COMMAND_START_APP.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 7 Jul 2019 07:35:51 +0000
(09:35 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000
(20:38 +0100)
This command is to instruct the bootloader to jump to the application.
It doesn't do anything yet.
src/bootloader/bootloader.rs
patch
|
blob
|
history
diff --git
a/src/bootloader/bootloader.rs
b/src/bootloader/bootloader.rs
index 95f4e97f639dfb7f1a044eaec07401d09e4f7dd9..cf4bca2926638a34be6be5572d9a3a241970f32c 100644
(file)
--- a/
src/bootloader/bootloader.rs
+++ b/
src/bootloader/bootloader.rs
@@
-29,6
+29,7
@@
const COMMAND_ERASE : u32 = 0x49e89a20;
const COMMAND_PROGRAM : u32 = 0x37f7dc8d;
const COMMAND_VERIFY : u32 = 0x4a213efb;
const COMMAND_LOADCHUNK : u32 = 0x1b329768;
+const COMMAND_START_APP : u32 = 0xd27df1bf;
pub struct Bootloader {
command: u32,
@@
-172,6
+173,9
@@
impl Bootloader {
write_ack();
}
},
+ COMMAND_START_APP => {
+ write_ack();
+ },
_ => {
write_nak(Error::UnknownCommand);
}