You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
457 B
27 lines
457 B
#ifndef BOOT_H_
|
|
#define BOOT_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
#define BOOT_VERSION_MAJOR 1
|
|
#define BOOT_VERSION_MINOR 1
|
|
|
|
|
|
|
|
|
|
//Struct that is recieved by module from updater
|
|
typedef struct {
|
|
//[BLOCK 1]
|
|
uint32_t FmwHash; //CRC32
|
|
uint16_t FmwSizeInPages;
|
|
uint8_t ModuleType[3];
|
|
uint8_t HwRevision[2];
|
|
uint8_t Reserved1[5];
|
|
//[BLOCK 2]
|
|
uint8_t SwVersion[2]; //uint8_t[2]
|
|
uint8_t Reserved2[10];
|
|
uint32_t InfoHash;
|
|
} FMW_INFO;
|
|
|
|
|
|
#endif /* BOOT_H_ */ |