mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-26 12:50:30 +00:00
Merge branch 'refactor/cache_disable_enable_interface' into 'master'
refactor(cache): abstract cache rom API in cache_ll.h Closes IDF-7922 See merge request espressif/esp-idf!25040
This commit is contained in:
@@ -358,11 +358,6 @@ void IRAM_ATTR spi_flash_enable_cache(uint32_t cpuid)
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* The following two functions are replacements for Cache_Read_Disable and Cache_Read_Enable
|
||||
* function in ROM. They are used to work around a bug where Cache_Read_Disable requires a call to
|
||||
* Cache_Flush before Cache_Read_Enable, even if cached data was not modified.
|
||||
*/
|
||||
void IRAM_ATTR spi_flash_disable_cache(uint32_t cpuid, uint32_t *saved_state)
|
||||
{
|
||||
cache_hal_suspend(CACHE_TYPE_ALL);
|
||||
|
||||
Reference in New Issue
Block a user