fix: add spi_flash.h for s2, s3, c3 targets in cpu_start.c

update s2, s3, c3 ld files spi_flash_attach to esp_rom_spiflash_attach
This commit is contained in:
Fu Hanxi
2021-01-26 11:54:22 +08:00
parent 119b61451f
commit e4e375f488
6 changed files with 16 additions and 7 deletions

View File

@@ -84,11 +84,20 @@
#include "bootloader_mem.h"
#if CONFIG_IDF_TARGET_ESP32
#if CONFIG_APP_BUILD_TYPE_ELF_RAM
#if CONFIG_IDF_TARGET_ESP32
#include "esp32/rom/spi_flash.h"
#endif // CONFIG_IDF_TARGET_ESP32
#if CONFIG_IDF_TARGET_ESP32S2
#include "esp32s2/rom/spi_flash.h"
#endif // CONFIG_IDF_TARGET_ESP32S2
#if CONFIG_IDF_TARGET_ESP32S3
#include "esp32s3/rom/spi_flash.h"
#endif // CONFIG_IDF_TARGET_ESP32S3
#if CONFIG_IDF_TARGET_ESP32C3
#include "esp32c3/rom/spi_flash.h"
#endif // CONFIG_IDF_TARGET_ESP32C3
#endif // CONFIG_APP_BUILD_TYPE_ELF_RAM
#endif
#include "esp_private/startup_internal.h"
#include "esp_private/system_internal.h"