]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lib.git/commitdiff
Increase FreeRTOS heap and use it by LwIP
authorJakub <nejedjak@fel.cvut.cz>
Sun, 1 Sep 2019 19:19:34 +0000 (21:19 +0200)
committerMichal Sojka <michal.sojka@cvut.cz>
Sun, 8 Sep 2019 13:20:47 +0000 (15:20 +0200)
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
os/8.2.2/include/os/FreeRTOSConfig.h

diff --git a/lwip b/lwip
index a0ca9096ba6efd2c39687355a5e6f25eabea4747..5261fb1510e8ff7226e4148d4690da31c8af980c 160000 (submodule)
--- a/lwip
+++ b/lwip
@@ -1 +1 @@
-Subproject commit a0ca9096ba6efd2c39687355a5e6f25eabea4747
+Subproject commit 5261fb1510e8ff7226e4148d4690da31c8af980c
index 5eca637eb572a7755a8cef7499852cdc7827a52d..81bc4053d97fc2c2da259c65b662b254d053dff8 100644 (file)
@@ -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