mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
8dbf23630a
This commit reorganizes SPI flash header files to better reflect their visibility and intended usage: 1. Rename `esp_flash_port/` to `esp_flash_chips/`: - Better reflects that these headers are for chip driver implementations - All chip driver headers moved to `esp_flash_chips/` directory - Added README.md explaining semi-public nature of these headers 2. Move internal headers to `esp_private/`: - `esp_flash_internal.h` -> `esp_private/esp_flash_internal.h` - `memspi_host_driver.h` -> `esp_private/memspi_host_driver.h` 3. Move chip driver related headers to `esp_flash_chips/`: - `esp_private/esp_flash_types.h` -> `esp_flash_chips/esp_flash_types.h` - `spi_flash/spi_flash_defs.h` -> `esp_flash_chips/spi_flash_defs.h` - `spi_flash_override.h` -> `esp_flash_chips/spi_flash_override.h` - All `spi_flash_chip_*.h` headers moved to `esp_flash_chips/` 4. Code improvements: - Remove unused includes (e.g., `spi_flash_override.h` from `cache_utils.c`) - Use public API `esp_flash_get_size()` instead of direct member access - Add `esp_flash_is_quad_mode` to linker.lf for IRAM placement 5. Documentation updates: - Add README.md in `esp_flash_chips/` explaining semi-public headers - Update programming guide with warnings about internal headers - Update both English and Chinese documentation 6. Update all references across the codebase: - Update includes in `spi_flash` component - Update `bootloader_support`, `app_update`, `esp_tee`, `espcoredump` - Update example projects Breaking changes: - Headers moved to new locations require include path updates - `custom_flash_driver` example temporarily disabled until external components are updated
93 lines
4.0 KiB
Plaintext
93 lines
4.0 KiB
Plaintext
[mapping:spi_flash]
|
|
archive: libspi_flash.a
|
|
entries:
|
|
if APP_BUILD_TYPE_PURE_RAM_APP = n:
|
|
flash_brownout_hook (noflash)
|
|
|
|
if SPI_FLASH_PLACE_FUNCTIONS_IN_IRAM = y:
|
|
spi_flash_wrap (noflash)
|
|
spi_flash_chip_generic (noflash)
|
|
spi_flash_chip_issi (noflash)
|
|
spi_flash_chip_mxic (noflash)
|
|
spi_flash_chip_gd (noflash)
|
|
spi_flash_chip_winbond (noflash)
|
|
spi_flash_chip_boya (noflash)
|
|
spi_flash_chip_th (noflash)
|
|
memspi_host_driver (noflash)
|
|
|
|
esp_flash_api: esp_flash_chip_driver_initialized (noflash)
|
|
esp_flash_api: esp_flash_init (noflash)
|
|
esp_flash_api: esp_flash_init_main (noflash)
|
|
esp_flash_api: esp_flash_is_quad_mode (noflash)
|
|
esp_flash_api: read_unique_id (noflash)
|
|
esp_flash_api: detect_spi_flash_chip (noflash)
|
|
esp_flash_api: esp_flash_get_physical_size (noflash)
|
|
|
|
spi_flash_os_func_app: spi23_start (noflash)
|
|
spi_flash_os_func_app: spi23_end (noflash)
|
|
spi_flash_os_func_app: spi_flash_os_check_yield (noflash)
|
|
spi_flash_os_func_app: spi_flash_os_yield (noflash)
|
|
spi_flash_os_func_app: delay_us (noflash)
|
|
spi_flash_os_func_app: get_buffer_malloc (noflash)
|
|
spi_flash_os_func_app: release_buffer_malloc (noflash)
|
|
spi_flash_os_func_app: main_flash_region_protected (noflash)
|
|
spi_flash_os_func_app: main_flash_op_status (noflash)
|
|
|
|
spi_flash_os_func_noos: esp_flash_app_disable_os_functions (noflash)
|
|
spi_flash_os_func_noos: get_temp_buffer_not_supported (noflash)
|
|
spi_flash_os_func_noos: delay_us (noflash)
|
|
|
|
if IDF_TARGET_ESP32S3 = y:
|
|
spi_flash_chip_mxic_opi (noflash)
|
|
|
|
if ESPTOOLPY_OCT_FLASH = y || ESPTOOLPY_FLASH_MODE_AUTO_DETECT = y:
|
|
spi_flash_oct_flash_init (noflash)
|
|
|
|
if SPI_FLASH_VERIFY_WRITE = y:
|
|
esp_flash_api: s_verify_write (noflash)
|
|
|
|
if SPI_FLASH_ROM_IMPL = n || ESP_ROM_HAS_ENCRYPTED_WRITES_USING_LEGACY_DRV = y || SPI_FLASH_FREQ_LIMIT_C5_240MHZ = y:
|
|
esp_flash_api: spiflash_start_default (noflash)
|
|
esp_flash_api: spiflash_start_core (noflash)
|
|
esp_flash_api: esp_flash_write_encrypted (noflash)
|
|
|
|
if SPI_FLASH_ROM_IMPL = n || ESP_ROM_HAS_ENCRYPTED_WRITES_USING_LEGACY_DRV = y:
|
|
esp_flash_api: spiflash_end_default (noflash)
|
|
esp_flash_api: check_chip_pointer_default (noflash)
|
|
esp_flash_api: flash_end_flush_cache (noflash)
|
|
|
|
if SPI_FLASH_ROM_IMPL = n:
|
|
esp_flash_api: esp_flash_get_size (noflash)
|
|
esp_flash_api: esp_flash_erase_chip (noflash)
|
|
esp_flash_api: esp_flash_get_chip_write_protect (noflash)
|
|
esp_flash_api: esp_flash_set_chip_write_protect (noflash)
|
|
esp_flash_api: esp_flash_get_protected_region (noflash)
|
|
esp_flash_api: esp_flash_set_protected_region (noflash)
|
|
esp_flash_api: esp_flash_read (noflash)
|
|
esp_flash_api: esp_flash_write (noflash)
|
|
esp_flash_api: esp_flash_read_encrypted (noflash)
|
|
esp_flash_api: esp_flash_get_io_mode (noflash)
|
|
esp_flash_api: esp_flash_set_io_mode (noflash)
|
|
esp_flash_api: esp_flash_erase_region (noflash)
|
|
|
|
if SPI_FLASH_WARN_SETTING_ZERO_TO_ONE = y:
|
|
esp_flash_api: s_check_setting_zero_to_one (noflash)
|
|
|
|
|
|
if SPI_FLASH_HPM_ON = y:
|
|
spi_flash_hpm_enable (noflash)
|
|
|
|
if ESP_SLEEP_SET_FLASH_DPD = y:
|
|
spi_flash_dpd_enable (noflash)
|
|
|
|
[mapping:spi_flash_hal]
|
|
archive: libesp_hal_mspi.a
|
|
entries:
|
|
if SPI_FLASH_PLACE_FUNCTIONS_IN_IRAM = y:
|
|
spi_flash_hal_iram (noflash)
|
|
if SOC_FLASH_ENC_SUPPORTED = y:
|
|
spi_flash_encrypt_hal_iram (noflash)
|
|
|
|
if SOC_GPSPI_SUPPORTED = y && IDF_TARGET_ESP32 = n:
|
|
spi_flash_hal_gpspi (noflash)
|