From 300b1934ea3b1127872283f478c37bc1ef8a93aa Mon Sep 17 00:00:00 2001 From: Jakub Date: Sun, 1 Sep 2019 21:19:34 +0200 Subject: [PATCH] Increase FreeRTOS heap and use it by LwIP FreeRTOS heap is increased by capacity of LwIP heap. LwIP heap configured to use FreeRTOS heap. LwIP functions malloc functions redefined to FreeRTOS malloc. --- lwip | 2 +- os/8.2.2/include/os/FreeRTOSConfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lwip b/lwip index a0ca909..5261fb1 160000 --- a/lwip +++ b/lwip @@ -1 +1 @@ -Subproject commit a0ca9096ba6efd2c39687355a5e6f25eabea4747 +Subproject commit 5261fb1510e8ff7226e4148d4690da31c8af980c diff --git a/os/8.2.2/include/os/FreeRTOSConfig.h b/os/8.2.2/include/os/FreeRTOSConfig.h index 5eca637..81bc405 100644 --- a/os/8.2.2/include/os/FreeRTOSConfig.h +++ b/os/8.2.2/include/os/FreeRTOSConfig.h @@ -34,7 +34,7 @@ #define configTICK_RATE_HZ ( ( portTickType ) 1000 ) #define configMAX_PRIORITIES ( 8 ) #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 128 ) -#define configTOTAL_HEAP_SIZE ( ( size_t ) 65535 ) +#define configTOTAL_HEAP_SIZE ( ( size_t ) 2*65535 ) #define configMAX_TASK_NAME_LEN ( 16 ) #define configIDLE_SHOULD_YIELD 1 #define configGENERATE_RUN_TIME_STATS 0 -- 2.39.2