From 55485ae61eaa41ef4d74a7473f7e415ca37a7dea Mon Sep 17 00:00:00 2001 From: Colin Hogben Date: Wed, 5 Oct 2016 16:28:29 +0100 Subject: [PATCH] lwip: Annotate with memory used by config parameters --- features/FEATURE_LWIP/lwip-interface/lwipopts.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/features/FEATURE_LWIP/lwip-interface/lwipopts.h b/features/FEATURE_LWIP/lwip-interface/lwipopts.h index dc6f240d08..ca5afcdd93 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwipopts.h +++ b/features/FEATURE_LWIP/lwip-interface/lwipopts.h @@ -106,24 +106,35 @@ #define LWIP_RAM_HEAP_POINTER lwip_ram_heap #ifndef PBUF_POOL_SIZE +/// Each requires 684 bytes of RAM. #define PBUF_POOL_SIZE 5 #endif #ifndef MEMP_NUM_TCP_PCB_LISTEN +/// One is needed for each TCPServer. +/// Each requires 72 bytes of RAM. #define MEMP_NUM_TCP_PCB_LISTEN 4 #endif #ifndef MEMP_NUM_TCP_PCB +/// One is needed for each TCPSocket. +/// Each requires 196 bytes of RAM. #define MEMP_NUM_TCP_PCB 4 #endif #ifndef MEMP_NUM_UDP_PCB +/// One is needed for each UDPSocket. +/// Each requires 84 bytes of RAM (rounded to multiple of 512). #define MEMP_NUM_UDP_PCB 4 #endif #ifndef MEMP_NUM_PBUF +/// Each requires 92 bytes of RAM. #define MEMP_NUM_PBUF 8 #endif #ifndef MEMP_NUM_NETBUF +/// Each requires 64 bytes of RAM. #define MEMP_NUM_NETBUF 8 #endif #ifndef MEMP_NUM_NETCONN +/// One netconn is needed for each UDPSocket, TCPSocket or TCPServer. +/// Each requires 236 bytes of RAM (rounded to multiple of 512). #define MEMP_NUM_NETCONN 4 #endif