mirror of
https://github.com/andreili/katapult.git
synced 2025-08-24 03:44:06 +02:00
canboot: modify command bytes IDs
This is just to avoid confusion between RX_EOF and the command trailer. Having both as 0x03 could potential lead to issues. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
11e96a8f3e
commit
26c89e8b0e
@ -14,14 +14,14 @@
|
|||||||
|
|
||||||
#define COMMAND_SIZE 8
|
#define COMMAND_SIZE 8
|
||||||
#define CMD_BUF_SIZE 16
|
#define CMD_BUF_SIZE 16
|
||||||
#define CMD_CONNECT 0x01
|
#define CMD_CONNECT 0x11
|
||||||
#define CMD_RX_BLOCK 0x02
|
#define CMD_RX_BLOCK 0x12
|
||||||
#define CMD_RX_EOF 0x03
|
#define CMD_RX_EOF 0x13
|
||||||
#define CMD_REQ_BLOCK 0x04
|
#define CMD_REQ_BLOCK 0x14
|
||||||
#define CMD_COMPLETE 0x05
|
#define CMD_COMPLETE 0x15
|
||||||
#define ACK_COMMAND 0x10
|
#define ACK_COMMAND 0xa0
|
||||||
#define ACK_BLOCK_RX 0x11
|
#define ACK_BLOCK_RX 0xa1
|
||||||
#define NACK 0x20
|
#define NACK 0xf0
|
||||||
|
|
||||||
// Command Format:
|
// Command Format:
|
||||||
// <4 byte header> <1 byte cmd> <2 byte arg> <1 byte trailer>
|
// <4 byte header> <1 byte cmd> <2 byte arg> <1 byte trailer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user