2018-05-26 02:58:01 -04:00
|
|
|
#include "esp_spi_flash.h"
|
|
|
|
#include "esp_partition.h"
|
|
|
|
|
|
|
|
#include "esp_err.h"
|
2019-03-14 05:29:32 -04:00
|
|
|
#include "esp32/rom/spi_flash.h"
|
2018-05-26 02:58:01 -04:00
|
|
|
|
2019-03-08 00:30:49 -05:00
|
|
|
bool spi_flash_check_and_flush_cache(size_t start_addr, size_t length)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
2019-03-08 00:30:49 -05:00
|
|
|
return true;
|
2018-05-26 02:58:01 -04:00
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
esp_rom_spiflash_result_t esp_rom_spiflash_unlock(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return ESP_ROM_SPIFLASH_RESULT_OK;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_init_lock(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_op_lock(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_op_unlock(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_disable_interrupts_caches_and_other_cpu(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_enable_interrupts_caches_and_other_cpu(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_disable_interrupts_caches_and_other_cpu_no_os(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2019-07-16 05:33:30 -04:00
|
|
|
void spi_flash_enable_interrupts_caches_no_os(void)
|
2018-05-26 02:58:01 -04:00
|
|
|
{
|
|
|
|
return;
|
2019-03-08 00:30:49 -05:00
|
|
|
}
|
2022-07-25 03:08:51 -04:00
|
|
|
|
|
|
|
int bootloader_flash_get_wp_pin(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|