diff options
| author | Jean-François Milants <jf@codingfield.com> | 2023-03-26 14:49:03 +0200 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-05-18 19:58:09 +0200 |
| commit | 1911e2d9285cb5b0a6ecd3bf3de864783f2b0e3e (patch) | |
| tree | 055bdd2a889c0492ee0807f8c140067b1ba34d40 /src/FreeRTOSConfig.h | |
| parent | 9e808a65ec38a3b6f465b6d6b2ec93160c942076 (diff) | |
Unify all heaps (stdlib + LVGL + FreeRTOS) into a single heap managed by 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.
Diffstat (limited to 'src/FreeRTOSConfig.h')
| -rw-r--r-- | src/FreeRTOSConfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FreeRTOSConfig.h b/src/FreeRTOSConfig.h index 263d8031..ab0cf1ba 100644 --- a/src/FreeRTOSConfig.h +++ b/src/FreeRTOSConfig.h @@ -62,7 +62,7 @@ #define configTICK_RATE_HZ 1024 #define configMAX_PRIORITIES (3) #define configMINIMAL_STACK_SIZE (120) -#define configTOTAL_HEAP_SIZE (1024 * 17) +#define configTOTAL_HEAP_SIZE (1024 * 40) #define configMAX_TASK_NAME_LEN (4) #define configUSE_16_BIT_TICKS 0 #define configIDLE_SHOULD_YIELD 1 |
