Skip to content

Commit

Permalink
bl:Reserve Protocol codes 0x15, 0x36-0x39
Browse files Browse the repository at this point in the history
   To avoid codepoint overlap.
  • Loading branch information
David Sidrane committed Nov 26, 2018
1 parent d4bd390 commit 58a06fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bl.c
Expand Up @@ -80,6 +80,8 @@
//

#define BL_PROTOCOL_VERSION 5 // The revision of the bootloader protocol
//* Next revision needs to update

// protocol bytes
#define PROTO_INSYNC 0x12 // 'in sync' byte sent before status
#define PROTO_EOC 0x20 // end of command
Expand All @@ -89,6 +91,8 @@
#define PROTO_FAILED 0x11 // INSYNC/FAILED - 'fail' response
#define PROTO_INVALID 0x13 // INSYNC/INVALID - 'invalid' response for bad commands
#define PROTO_BAD_SILICON_REV 0x14 // On the F4 series there is an issue with < Rev 3 silicon
#define PROTO_RESERVED_0X15 0x15 // Reserved

// see https://pixhawk.org/help/errata
// Command bytes
#define PROTO_GET_SYNC 0x21 // NOP for re-establishing sync
Expand All @@ -105,6 +109,11 @@
#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
#define PROTO_RESERVED_0X38 0x38 // Reserved
#define PROTO_RESERVED_0X39 0x39 // Reserved

#define PROTO_PROG_MULTI_MAX 64 // maximum PROG_MULTI size
#define PROTO_READ_MULTI_MAX 255 // size of the size field

Expand Down

0 comments on commit 58a06fd

Please sign in to comment.