From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 07:35:51 +0000 (+0200) Subject: bootloader: Prepare implementation of COMMAND_START_APP. X-Git-Url: http://git.code-monkey.de/?a=commitdiff_plain;h=e3c4f8ce159a91cd90b2d97e23c9a9c707ca1d5d;p=gps-watch.git bootloader: Prepare implementation of COMMAND_START_APP. This command is to instruct the bootloader to jump to the application. It doesn't do anything yet. --- diff --git a/src/bootloader/bootloader.rs b/src/bootloader/bootloader.rs index 95f4e97..cf4bca2 100644 --- 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); }