Function esp_idf_svc::hal::sys::bootloader_common_check_chip_validity
source · pub unsafe extern "C" fn bootloader_common_check_chip_validity(
img_hdr: *const esp_image_header_t,
type_: u32,
) -> i32
Expand description
@brief Check if the image (bootloader and application) has valid chip ID and revision
@param[in] img_hdr: image header @param[in] type: image type, bootloader or application @return - ESP_OK: image and chip are matched well - ESP_FAIL: image doesn’t match to the chip