mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
This commit is contained in:
parent
c7e8b6819c
commit
4da5de094e
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
#define SPI_IDX 1
|
#define SPI_IDX 1
|
||||||
|
|
||||||
#if CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
|
|
||||||
|
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
extern esp_rom_spiflash_chip_t g_rom_spiflash_chip;
|
extern esp_rom_spiflash_chip_t g_rom_spiflash_chip;
|
||||||
@ -108,6 +106,12 @@ __attribute__((__unused__)) esp_rom_spiflash_result_t esp_rom_spiflash_clear_bp(
|
|||||||
}
|
}
|
||||||
esp_rom_spiflash_result_t esp_rom_spiflash_unlock(void) __attribute__((alias("esp_rom_spiflash_clear_bp")));
|
esp_rom_spiflash_result_t esp_rom_spiflash_unlock(void) __attribute__((alias("esp_rom_spiflash_clear_bp")));
|
||||||
|
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
|
#if CONFIG_SPI_FLASH_ROM_DRIVER_PATCH
|
||||||
|
|
||||||
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
|
|
||||||
static esp_rom_spiflash_result_t esp_rom_spiflash_enable_write(esp_rom_spiflash_chip_t *spi);
|
static esp_rom_spiflash_result_t esp_rom_spiflash_enable_write(esp_rom_spiflash_chip_t *spi);
|
||||||
|
|
||||||
//only support spi1
|
//only support spi1
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=n
|
Loading…
x
Reference in New Issue
Block a user