mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
spi_flash: support esp32s2beta
This commit is contained in:
committed by
Angus Gratton
parent
b76d5d74d9
commit
9f1c8f0c76
@@ -26,3 +26,5 @@ PROVIDE ( esp_rom_spiflash_erase_sector = SPIEraseSector );
|
|||||||
PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock );
|
PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock );
|
||||||
PROVIDE ( esp_rom_spiflash_wait_idle = SPI_Wait_Idle );
|
PROVIDE ( esp_rom_spiflash_wait_idle = SPI_Wait_Idle );
|
||||||
PROVIDE ( esp_rom_spiflash_config_readmode = SPIReadModeCnfig );
|
PROVIDE ( esp_rom_spiflash_config_readmode = SPIReadModeCnfig );
|
||||||
|
PROVIDE ( esp_rom_spiflash_erase_block = SPIEraseBlock );
|
||||||
|
PROVIDE ( esp_rom_spiflash_write_encrypted = SPI_Encrypt_Write );
|
@@ -4,7 +4,7 @@ if(BOOTLOADER_BUILD)
|
|||||||
# but on other platforms no source files are needed for bootloader
|
# but on other platforms no source files are needed for bootloader
|
||||||
set(srcs)
|
set(srcs)
|
||||||
else()
|
else()
|
||||||
set(srcs
|
set(srcs
|
||||||
"cache_utils.c"
|
"cache_utils.c"
|
||||||
"flash_mmap.c"
|
"flash_mmap.c"
|
||||||
"flash_ops.c"
|
"flash_ops.c"
|
||||||
@@ -27,7 +27,7 @@ else()
|
|||||||
set(priv_requires bootloader_support app_update soc)
|
set(priv_requires bootloader_support app_update soc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_IDF_TARGET_ESP32)
|
if(IDF_TARGET STREQUAL "esp32")
|
||||||
list(APPEND srcs "spi_flash_rom_patch.c")
|
list(APPEND srcs "spi_flash_rom_patch.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user