From fd8b526f7c3a9ea801a8ba6f04d91c7eaa145ffe Mon Sep 17 00:00:00 2001 From: chenjianqiang Date: Fri, 21 Jun 2019 21:50:08 +0800 Subject: [PATCH] add two APIs into esp32beta.rom.spiflash.ld to fix compile error When config flash mode as QIO mode, the error that esp_rom_spiflash_wait_idle and esp_rom_spiflash_config_readmode are undefined happens when compile, so add these two APIs to fix the error. --- components/esp_rom/esp32s2beta/ld/esp32s2beta.rom.spiflash.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_rom/esp32s2beta/ld/esp32s2beta.rom.spiflash.ld b/components/esp_rom/esp32s2beta/ld/esp32s2beta.rom.spiflash.ld index a7d08e4ac9..9bfa3bfa30 100644 --- a/components/esp_rom/esp32s2beta/ld/esp32s2beta.rom.spiflash.ld +++ b/components/esp_rom/esp32s2beta/ld/esp32s2beta.rom.spiflash.ld @@ -23,3 +23,5 @@ PROVIDE ( esp_rom_spiflash_config_clk = SPIClkConfig ); PROVIDE ( esp_rom_spiflash_select_qio_pins = SelectSpiQIO ); PROVIDE ( esp_rom_spiflash_unlock = SPIUnlock ); PROVIDE ( esp_rom_spiflash_erase_sector = SPIEraseSector ); +PROVIDE ( esp_rom_spiflash_wait_idle = SPI_Wait_Idle ); +PROVIDE ( esp_rom_spiflash_config_readmode = SPIReadModeCnfig );