refactor: move bootloader_init_spi_flash to bootloader_flash_config_{target}.c

This commit is contained in:
wuzhenghui
2023-01-30 18:04:18 +08:00
parent 0cbb4227b2
commit c0d2fcded7
18 changed files with 1446 additions and 1345 deletions
@@ -0,0 +1,23 @@
/*
* SPDX-FileCopyrightText: 2020-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include <stdint.h>
#include <esp_err.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Initialize spi_flash in bootloader and print flash info
*
* @return ESP_OK on success, otherwise see esp_err_t
*/
esp_err_t bootloader_init_spi_flash(void);
#ifdef __cplusplus
}
#endif