aboutsummaryrefslogtreecommitdiffstats
path: root/src/stdlib.c
Commit message (Collapse)AuthorAgeFilesLines
* Use all free RAM for FreeRTOS heapFelipe Martínez2024-12-091-6/+30
| | | | | * Use all free RAM for FreeRTOS heap * Wrap newlib malloc and related functions * Implement calloc
* Unify all heaps (stdlib + LVGL + FreeRTOS) into a single heap managed by ↵Jean-François Milants2023-05-181-0/+27
FreeRTOS and heap_4_infinitime.c. LVGL supports custom implementation of malloc() and free() so using pvPortMalloc() and vPortFree() is just a matter of setting the right variables. Other libraries (NimBLE, LittleFS) and InfiniTime code (new) call malloc() and free() from stdlib. InfiniTime now provides the file stdlib.c that provides a custom implementation for malloc(), free(), calloc() and realloc(). This ensures that all calls to the standard allocator are redirected to the FreeRTOS memory manager. Note that realloc() is needed by NimBLE.