Merge branch 'docs/update_bootloader_chip_revision_print_v3.2' into 'release/v3.2'

bootloader_support: fix logging prints around chip revision (v3.2)

See merge request espressif/esp-idf!6338
This commit is contained in:
Jiang Jiang Jian
2019-10-21 10:48:46 +08:00
4 changed files with 14 additions and 8 deletions

View File

@@ -23,6 +23,11 @@ typedef enum {
GPIO_NOT_HOLD = 0 /*!< If the GPIO input is not low */
} esp_comm_gpio_hold_t;
typedef enum {
ESP_IMAGE_BOOTLOADER,
ESP_IMAGE_APPLICATION
} esp_image_type;
/**
* @brief Calculate crc for the OTA data partition.
*
@@ -103,12 +108,13 @@ uint8_t bootloader_common_get_chip_revision(void);
/**
* @brief Check if the image (bootloader and application) has valid chip ID and revision
*
* @param img_hdr: image header
* @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
*/
esp_err_t bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr);
esp_err_t bootloader_common_check_chip_validity(const esp_image_header_t* img_hdr, esp_image_type type);
/**