46 #ifndef EXT_FLASH_LAYOUT_H 47 #define EXT_FLASH_LAYOUT_H 68 #define OAD_EFL_MAGIC {'O', 'A', 'D', ' ', 'N', 'V', 'M', '1'} 74 #define OAD_EFL_MAGIC_SZ 8 80 #define EFL_ADDR_META 0x00000 86 #define EFL_SIZE_META EFL_PAGE_SIZE 92 #define EFL_META_PG_INVALID 0xFF 98 #define EFL_FACT_IMG_META_PG 0 103 #define EFL_ADDR_META_FACT_IMG EFL_ADDR_META 108 #define EFL_META_COPY_SZ offsetof(ExtImageInfo_t, fixedHdr.rfu) + \ 109 sizeof(((ExtImageInfo_t){0}).fixedHdr.rfu) 114 #define EFL_METADATA_LEN sizeof(ExtImageInfo_t) 120 #define EFL_IMG_STR_ADDR_OFFSET offsetof(ExtImageInfo_t, extFlAddr) 125 #define EFL_META_COUNTER_OFFSET offsetof(ExtImageInfo_t, counter) 131 TYPEDEF_STRUCT_PACKED
imgFixedHdr_t fixedHdr
This is the core image header.
Definition: ext_flash_layout.h:133
Definition: oad_image_header.h:629
uint32_t extFlAddr
Location of the image in ext flash.
Definition: ext_flash_layout.h:134
Definition: ext_flash_layout.h:131
uint32_t counter
Timestamp/counter of image.
Definition: ext_flash_layout.h:135