mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 04:25:32 +00:00
refactor: remove dependency on spi_flash include for sector size
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -464,6 +464,14 @@ esp_err_t esp_partition_deregister_external(const esp_partition_t* partition);
|
||||
*/
|
||||
void esp_partition_unload_all(void);
|
||||
|
||||
/**
|
||||
* @brief Get the main flash sector size
|
||||
* @return
|
||||
* - SPI_FLASH_SEC_SIZE - For esp32xx target
|
||||
* - ESP_PARTITION_EMULATED_SECTOR_SIZE - For linux target
|
||||
*/
|
||||
uint32_t esp_partition_get_main_flash_sector_size(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user