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 f09dc866f8
commit fd9f46a645
3 changed files with 43 additions and 8 deletions

View File

@@ -70,6 +70,13 @@ bool bootloader_common_erase_part_type_data(const char *list_erase, bool ota_dat
*/
bool bootloader_common_label_search(const char *list, char *label);
/**
* @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
*