image_check.h 352 B

1234567891011
  1. #ifndef IMAGE_CHECK_H
  2. #define IMAGE_CHECK_H
  3. #include <stdint.h>
  4. #include "boot_layout.h"
  5. /* 校验 NOR 暂存区升级包(字段链+双 CRC+版本策略)。返回 BOOT_ERR_NONE 表示可烧录 */
  6. boot_err_t image_check(fw_image_header_t *hdr, uint32_t running_ver,
  7. uint8_t allow_downgrade_dev);
  8. #endif /* IMAGE_CHECK_H */