1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef FWIMG_H
- #define FWIMG_H
- #include <inttypes.h>
- #define FW_MAGIC 0x7a07fbd6
- struct fw_header {
- uint32_t magic;
- uint16_t type;
- uint16_t flags;
- uint32_t len;
- uint32_t addr;
- };
- enum fw_data_type {
- FDT_END,
- FDT_DATA,
- FDT_TARGET,
- FDT_NOTE,
- FDT_ESP_OTA,
- FDT_FPGA_INIT,
- FDT_ESP_PART,
- FDT_ESP_SYS,
- FDT_ESP_TOOL
- };
- enum fw_data_flags {
- FDF_OPTIONAL = 0x0001
- };
- #endif
|