[][src]Function esp_idf_sys::heap_caps_malloc_extmem_enable

pub unsafe extern "C" fn heap_caps_malloc_extmem_enable(limit: usize)

@brief Enable malloc() in external memory and set limit below which malloc() attempts are placed in internal memory.

When external memory is in use, the allocation strategy is to initially try to satisfy smaller allocation requests with internal memory and larger requests with external memory. This sets the limit between the two, as well as generally enabling allocation in external memory.

@param limit Limit, in bytes.