doc(mm): added cache msync API direction related descriptions

pull/11923/head
Armando 2023-07-06 10:33:39 +08:00
rodzic da8afe7c78
commit 3625db723c
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -153,6 +153,11 @@ SPI Flash can be accessed by SPI1 (ESP-IDF `esp_flash` driver APIs), or by point
PSRAM can also be accessed by EDMA. Data desynchronisation may happen because hardware does not guarantee the data consistency under such condition. You should call :cpp:func:`esp_cache_msync` to synchronise the Cache and the PSRAM.
:cpp:func:`esp_cache_msync` has two synchronization directions,
* c:macro:`ESP_CACHE_MSYNC_FLAG_DIR_C2M`: from cache to memory. By default (if you don't specify a direction), the synchronization is in this direction. Content in the address you specified will be written back to the memory.
* c:macro:`ESP_CACHE_MSYNC_FLAG_DIR_M2C`: from memory to cache. By default, content in the address you specified will be invalidated from the cache.
Thread Safety
=============

Wyświetl plik

@ -1 +1 @@
.. include:: /../en/api-reference/system/mm.rst
.. include:: ../../../en/api-reference/system/mm.rst