fwinfo.h (476B)
1 #ifndef __FWINFO_H__ 2 #define __FWINFO_H__ 3 4 #include <stdint.h> 5 6 typedef struct __attribute__((__packed__)) { 7 uint8_t major; 8 uint8_t minor; 9 uint8_t patch; 10 uint8_t hash[5]; 11 } FWVersion_t; 12 13 #define FWINFO_SENTINEL (0xDEADC0DE) 14 15 typedef struct __attribute__((__packed__)) { 16 uint32_t sentinel; 17 uint32_t deviceID; 18 FWVersion_t version; 19 uint32_t length; 20 uint32_t crc32; 21 } FirmwareInfo_t; 22 23 // void firmware_write_info(void); 24 25 #endif // __FWINFO_H__