bootloader: create public bootloader_flash.h header

Move non-public functions into bootloader_flash_priv.h header
This commit is contained in:
Michael (XIAO Xufeng)
2020-07-13 03:23:12 +08:00
parent fefdee1349
commit 3b2e8648eb
20 changed files with 53 additions and 32 deletions

View File

@@ -20,6 +20,7 @@
#include <esp_err.h>
#include <esp_spi_flash.h> /* including in bootloader for error values */
#include "sdkconfig.h"
#include "bootloader_flash.h"
#define FLASH_SECTOR_SIZE 0x1000
#define FLASH_BLOCK_SIZE 0x10000
@@ -167,14 +168,4 @@ uint32_t bootloader_execute_flash_command(uint8_t command, uint32_t mosi_data, u
*/
void bootloader_enable_wp(void);
#if CONFIG_IDF_TARGET_ESP32S2
/**
* @brief Set the burst mode setting command for specified wrap mode.
*
* @param mode The specified warp mode.
* @return always ESP_OK
*/
esp_err_t bootloader_flash_wrap_set(spi_flash_wrap_mode_t mode);
#endif
#endif