From 6f3d8b762047b7dfbc493aa60cf01a332c8285cd Mon Sep 17 00:00:00 2001 From: Slavey Karadzhov Date: Tue, 9 Oct 2018 16:46:28 +0200 Subject: [PATCH] Fix compilation of custom heap under SDK 3.0.0 --- Sming/custom_heap/heap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sming/custom_heap/heap.c b/Sming/custom_heap/heap.c index 9fc0a97d21..d1bf76da79 100644 --- a/Sming/custom_heap/heap.c +++ b/Sming/custom_heap/heap.c @@ -35,6 +35,8 @@ void* IRAM_ATTR pvPortZalloc(size_t size, const char* file, int line) return calloc(1, size); } +void* IRAM_ATTR pvPortZallocIram(size_t size, const char* file, int line) __attribute__ ((weak, alias("pvPortZalloc"))); + size_t xPortGetFreeHeapSize(void) { return umm_free_heap_size();