mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 07:00:05 +08:00
feat(heap): Remove old heap and modify old heap API
This commit is contained in:
@ -28,16 +28,9 @@
|
||||
*/
|
||||
void *mem_malloc_ll(size_t s)
|
||||
{
|
||||
void *p;
|
||||
void *return_addr = (void *)__builtin_return_address(0);
|
||||
|
||||
p = pvPortMalloc_trace(s, return_addr, (unsigned)-1, false);
|
||||
if (IS_IRAM(p)) {
|
||||
vPortFree_trace(p, return_addr, (unsigned)-1);
|
||||
p = NULL;
|
||||
}
|
||||
|
||||
return p;
|
||||
return _heap_caps_malloc(s, MALLOC_CAP_8BIT, return_addr, 0);
|
||||
}
|
||||
|
||||
void *memp_malloc_ll(size_t type)
|
||||
|
Reference in New Issue
Block a user