mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
docs(esp_psram): mirror carve-out review-feedback updates in zh_CN
Mirror the recent EN-side updates in the Chinese External RAM guide: - Replace "PSRAM 顶部" with "PSRAM 上端(最高物理地址区)" to match the clarified wording on the EN side. - Add the verification-helper pointer next to the heap_caps_malloc example so Chinese readers also learn about esp_psram_ptr_is_no_enc(). Also drop the :cpp:func: cross-reference for esp_psram_ptr_is_no_enc on the EN side: esp_psram.h is not in any chip-specific Doxyfile, so Sphinx/Breathe cannot resolve the reference. Use a plain inline code literal instead, matching the existing reference style for esp_psram_get_size and other esp_psram functions in the docs.
This commit is contained in:
@@ -271,7 +271,7 @@ By default, failure to initialize external RAM will cause the ESP-IDF startup to
|
||||
|
||||
``MALLOC_CAP_SPIRAM_NO_ENC`` must be requested explicitly. It is intentionally not combined with ``MALLOC_CAP_SPIRAM`` or ``MALLOC_CAP_DEFAULT``, so ordinary SPIRAM/heap allocations cannot accidentally land in the unencrypted region.
|
||||
|
||||
To verify after the fact that a buffer was allocated from the unencrypted carve-out (for example after a ``heap_caps_malloc_prefer()`` call that may have fallen back to encrypted PSRAM), use :cpp:func:`esp_psram_ptr_is_no_enc`.
|
||||
To verify after the fact that a buffer was allocated from the unencrypted carve-out (for example after a ``heap_caps_malloc_prefer()`` call that may have fallen back to encrypted PSRAM), use ``esp_psram_ptr_is_no_enc()``.
|
||||
|
||||
.. only:: SOC_PSRAM_ENCRYPTION_SEPARATE_KEY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user