]> granicus.if.org Git - esp-idf/commit
spiram: expose function to initialize SPI RAM cache
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 18 Sep 2017 15:02:33 +0000 (23:02 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 16 Oct 2017 01:15:11 +0000 (09:15 +0800)
commit1da3204a7caff9e4e98d14c705dfe83c4696f44b
tree4f4c14b09c3681108d925f94013a44acb5746616
parent3a271a4ae7df8a9049fbbb801feafca5043c31eb
spiram: expose function to initialize SPI RAM cache

Some frameworks based on ESP-IDF need to be able to decide whether to
initialize SPI RAM after the application has started. This change splits
out part of esp_spiram_init which manipulate cache MMU into a separate
function. Applications can disable cache, call esp_spiram_init_cache,
re-enable cache, and then call esp_spiram_init.
Disabling and re-enabling the cache can be achieved using functions
provided in esp_spi_flash.h.
components/esp32/cpu_start.c
components/esp32/include/esp_spiram.h
components/esp32/spiram.c