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