Skip to content

Commit

Permalink
Fix compilation of custom heap under SDK 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slav-at-attachix committed Oct 9, 2018
1 parent aabae3b commit 6f3d8b7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sming/custom_heap/heap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6f3d8b7

Please sign in to comment.