Skip to content

Commit 55485ae

Browse files
author
Colin Hogben
committed
lwip: Annotate with memory used by config parameters
1 parent b7a48b1 commit 55485ae

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

features/FEATURE_LWIP/lwip-interface/lwipopts.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,24 +106,35 @@
106106
#define LWIP_RAM_HEAP_POINTER lwip_ram_heap
107107

108108
#ifndef PBUF_POOL_SIZE
109+
/// Each requires 684 bytes of RAM.
109110
#define PBUF_POOL_SIZE 5
110111
#endif
111112
#ifndef MEMP_NUM_TCP_PCB_LISTEN
113+
/// One is needed for each TCPServer.
114+
/// Each requires 72 bytes of RAM.
112115
#define MEMP_NUM_TCP_PCB_LISTEN 4
113116
#endif
114117
#ifndef MEMP_NUM_TCP_PCB
118+
/// One is needed for each TCPSocket.
119+
/// Each requires 196 bytes of RAM.
115120
#define MEMP_NUM_TCP_PCB 4
116121
#endif
117122
#ifndef MEMP_NUM_UDP_PCB
123+
/// One is needed for each UDPSocket.
124+
/// Each requires 84 bytes of RAM (rounded to multiple of 512).
118125
#define MEMP_NUM_UDP_PCB 4
119126
#endif
120127
#ifndef MEMP_NUM_PBUF
128+
/// Each requires 92 bytes of RAM.
121129
#define MEMP_NUM_PBUF 8
122130
#endif
123131
#ifndef MEMP_NUM_NETBUF
132+
/// Each requires 64 bytes of RAM.
124133
#define MEMP_NUM_NETBUF 8
125134
#endif
126135
#ifndef MEMP_NUM_NETCONN
136+
/// One netconn is needed for each UDPSocket, TCPSocket or TCPServer.
137+
/// Each requires 236 bytes of RAM (rounded to multiple of 512).
127138
#define MEMP_NUM_NETCONN 4
128139
#endif
129140

0 commit comments

Comments
 (0)