heap_caps_add_region_with_caps() is only used within ESP-IDF.
 
Symbols
loading...
Files
loading (2/5)...
SummarySyntaxArgumentsReferencesCall TreeData UseLifecycle

Return value

- ESP_OK on success - ESP_ERR_INVALID_ARG if a parameter is invalid - ESP_ERR_NO_MEM if no memory to register new heap. - ESP_ERR_INVALID_SIZE if the memory region is too small to fit a heap - ESP_FAIL if region overlaps the start and/or end of an existing region

Notes

Please refer to following example for memory regions allowed for addition to heap based on an existing region (address range for demonstration purpose only): @verbatim Existing region: 0x1000 0x3000 New region: 0x1000 0x3000 (Allowed) New region: 0x1000 0x2000 (Allowed) New region: 0x0000 0x1000 (Allowed) New region: 0x3000 0x4000 (Allowed) New region: 0x0000 0x2000 (NOT Allowed) New region: 0x0000 0x4000 (NOT Allowed) New region: 0x1000 0x4000 (NOT Allowed) New region: 0x2000 0x4000 (NOT Allowed) @endverbatim

References