mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
change(dma): remove esp_dma_x usage in programming guide
This commit is contained in:
@ -159,7 +159,6 @@ INPUT = \
|
|||||||
$(PROJECT_PATH)/components/esp_http_server/include/esp_http_server.h \
|
$(PROJECT_PATH)/components/esp_http_server/include/esp_http_server.h \
|
||||||
$(PROJECT_PATH)/components/esp_https_ota/include/esp_https_ota.h \
|
$(PROJECT_PATH)/components/esp_https_ota/include/esp_https_ota.h \
|
||||||
$(PROJECT_PATH)/components/esp_https_server/include/esp_https_server.h \
|
$(PROJECT_PATH)/components/esp_https_server/include/esp_https_server.h \
|
||||||
$(PROJECT_PATH)/components/esp_hw_support/dma/include/esp_dma_utils.h \
|
|
||||||
$(PROJECT_PATH)/components/esp_hw_support/include/esp_clk_tree.h \
|
$(PROJECT_PATH)/components/esp_hw_support/include/esp_clk_tree.h \
|
||||||
$(PROJECT_PATH)/components/esp_hw_support/include/esp_async_memcpy.h \
|
$(PROJECT_PATH)/components/esp_hw_support/include/esp_async_memcpy.h \
|
||||||
$(PROJECT_PATH)/components/esp_hw_support/include/esp_chip_info.h \
|
$(PROJECT_PATH)/components/esp_hw_support/include/esp_chip_info.h \
|
||||||
|
@ -101,17 +101,6 @@ There is address and size alignment requirement (in bytes) for using :cpp:func:`
|
|||||||
By default, if you specify an unaligned address region, :cpp:func:`esp_cache_msync` will return an :c:macro:`ESP_ERR_INVALID_ARG` error, together with the required alignment.
|
By default, if you specify an unaligned address region, :cpp:func:`esp_cache_msync` will return an :c:macro:`ESP_ERR_INVALID_ARG` error, together with the required alignment.
|
||||||
|
|
||||||
|
|
||||||
Memory Allocation Helper
|
|
||||||
------------------------
|
|
||||||
|
|
||||||
cache memory synchronization is usually considered when DMA is involved. ESP-IDF provides an API to do memory allocation that can meet the alignment requirement from both the cache and the DMA.
|
|
||||||
|
|
||||||
- :cpp:func:`esp_dma_capable_malloc`, this API allocates a chunk of memory that meets the alignment requirement from both the cache and the DMA.
|
|
||||||
- :cpp:func:`esp_dma_capable_calloc`, this API allocates a chunk of memory that meets the alignment requirement from both the cache and the DMA. The initialized value in the memory is set to zero.
|
|
||||||
|
|
||||||
You can also use :c:macro:`ESP_DMA_MALLOC_FLAG_PSRAM` to allocate from the PSRAM.
|
|
||||||
|
|
||||||
|
|
||||||
Warning for Address Alignment Requirement
|
Warning for Address Alignment Requirement
|
||||||
-----------------------------------------
|
-----------------------------------------
|
||||||
|
|
||||||
@ -138,9 +127,3 @@ API Reference - ESP Msync Driver
|
|||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
.. include-build-file:: inc/esp_cache.inc
|
.. include-build-file:: inc/esp_cache.inc
|
||||||
|
|
||||||
|
|
||||||
API Reference - ESP DMA Utils
|
|
||||||
-----------------------------
|
|
||||||
|
|
||||||
.. include-build-file:: inc/esp_dma_utils.inc
|
|
||||||
|
Reference in New Issue
Block a user