mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-12-13 16:58:55 +08:00
feat(startup): add fast boot and fast restart function
This commit is contained in:
@@ -30,11 +30,19 @@ static int selected_boot_partition(const bootloader_state_t *bs);
|
||||
|
||||
void call_start_cpu(void)
|
||||
{
|
||||
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
|
||||
REG_SET_BIT(DPORT_CTL_REG, DPORT_CTL_DOUBLE_CLK);
|
||||
#endif
|
||||
|
||||
// 1. Hardware initialization
|
||||
if(bootloader_init() != ESP_OK){
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_BOOTLOADER_FAST_BOOT
|
||||
bootloader_utility_fast_boot_image();
|
||||
#endif
|
||||
|
||||
// 2. Select image to boot
|
||||
esp_image_metadata_t image_data;
|
||||
if(select_image(&image_data) != ESP_OK){
|
||||
|
||||
Reference in New Issue
Block a user