carrot/panda/board/drivers/logging_definitions.h

10 lines
260 B
C
Raw Normal View History

// Flash is writable in 32-byte lines, this struct is designed to fit in two lines.
// This also matches the USB transfer size.
typedef struct __attribute__((packed)) log_t {
uint16_t id;
timestamp_t timestamp;
uint32_t uptime;
char msg[50];
} log_t;