From e3c4f8ce159a91cd90b2d97e23c9a9c707ca1d5d Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Sun, 7 Jul 2019 09:35:51 +0200 Subject: [PATCH] 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. --- src/bootloader/bootloader.rs | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.30.2