mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
236bd27134
Currently, we pull up cs io for spi flash/ram to reduce current leakage during light sleep. But some kind of spi flash/ram chip need all io pull up. Otherwise, current leakage will still exist.
56 lines
809 B
C
56 lines
809 B
C
#include "esp_spi_flash.h"
|
|
#include "esp_partition.h"
|
|
|
|
#include "esp_err.h"
|
|
#include "esp32/rom/spi_flash.h"
|
|
|
|
bool spi_flash_check_and_flush_cache(size_t start_addr, size_t length)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
esp_rom_spiflash_result_t esp_rom_spiflash_unlock(void)
|
|
{
|
|
return ESP_ROM_SPIFLASH_RESULT_OK;
|
|
}
|
|
|
|
void spi_flash_init_lock(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_op_lock(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_op_unlock(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_disable_interrupts_caches_and_other_cpu(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_enable_interrupts_caches_and_other_cpu(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_disable_interrupts_caches_and_other_cpu_no_os(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void spi_flash_enable_interrupts_caches_no_os(void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
int bootloader_flash_get_wp_pin(void)
|
|
{
|
|
return 0;
|
|
}
|