From 6ebb2b33dfcb2fc8dd6cfd6e900f1a6618245980 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Fri, 17 May 2024 15:18:44 +1200 Subject: [PATCH] bootloader: track ArduPilot protocol Just so we don't conflict on these commands in the future. --- platforms/nuttx/src/bootloader/common/bl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/platforms/nuttx/src/bootloader/common/bl.c b/platforms/nuttx/src/bootloader/common/bl.c index 4b4162d4b1..65f1e0f041 100644 --- a/platforms/nuttx/src/bootloader/common/bl.c +++ b/platforms/nuttx/src/bootloader/common/bl.c @@ -111,8 +111,12 @@ #define PROTO_DEBUG 0x31 // emit debug information - format not defined #define PROTO_SET_BAUD 0x33 // set baud rate on uart -#define PROTO_RESERVED_0X36 0x36 // Reserved -#define PROTO_RESERVED_0X37 0x37 // Reserved +// Reserved for external flash programming +// #define PROTO_EXTF_ERASE 0x34 // Erase sectors from external flash +// #define PROTO_EXTF_PROG_MULTI 0x35 // write bytes at external flash program address and increment +// #define PROTO_EXTF_READ_MULTI 0x36 // read bytes at address and increment +// #define PROTO_EXTF_GET_CRC 0x37 // compute & return a CRC of data in external flash + #define PROTO_RESERVED_0X38 0x38 // Reserved #define PROTO_RESERVED_0X39 0x39 // Reserved #define PROTO_CHIP_FULL_ERASE 0x40 // Full erase, without any flash wear optimization