We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b3436 commit a537740Copy full SHA for a537740
loader/main.c
@@ -22,15 +22,15 @@ LOG_MODULE_REGISTER(sketch);
22
#include <zephyr/drivers/uart.h>
23
#include <zephyr/usb/usb_device.h>
24
25
-#define HEADER_LEN 16
26
-
27
struct sketch_header_v1 {
28
uint8_t ver; // @ 0x07
29
uint32_t len; // @ 0x08
30
uint16_t magic; // @ 0x0c
31
uint8_t flags; // @ 0x0e
32
} __attribute__((packed));
33
+#define HEADER_LEN sizeof(struct sketch_header_v1)
+
34
#define SKETCH_FLAG_DEBUG 0x01
35
#define SKETCH_FLAG_LINKED 0x02
36
#define SKETCH_FLAG_IMMEDIATE 0x04
0 commit comments