bootloader: shrink bin size

1. write a bootloader version of "getting chip revision" function.
2. reduce wordy log.
This commit is contained in:
suda-morris
2019-09-27 10:58:30 +08:00
parent 9c4b4aec62
commit cbab3c34f8
4 changed files with 45 additions and 10 deletions

View File

@@ -142,6 +142,13 @@ int bootloader_common_select_otadata(const esp_ota_select_entry_t *two_otadata,
*/
esp_err_t bootloader_common_get_partition_description(const esp_partition_pos_t *partition, esp_app_desc_t *app_desc);
/**
* @brief Get chip revision
*
* @return Chip revision number
*/
uint8_t bootloader_common_get_chip_revision(void);
/**
* @brief Check if the image (bootloader and application) has valid chip ID and revision
*