Skip to content

Commit b7a48b1

Browse files
author
Colin Hogben
committed
lwip: Allow several configuration macros to be set externally.
Manually rebasing after the monster restructuring.
1 parent 382cb9f commit b7a48b1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

features/FEATURE_LWIP/lwip-interface/lwipopts.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,27 @@
105105

106106
#define LWIP_RAM_HEAP_POINTER lwip_ram_heap
107107

108+
#ifndef PBUF_POOL_SIZE
108109
#define PBUF_POOL_SIZE 5
110+
#endif
111+
#ifndef MEMP_NUM_TCP_PCB_LISTEN
109112
#define MEMP_NUM_TCP_PCB_LISTEN 4
113+
#endif
114+
#ifndef MEMP_NUM_TCP_PCB
110115
#define MEMP_NUM_TCP_PCB 4
116+
#endif
117+
#ifndef MEMP_NUM_UDP_PCB
111118
#define MEMP_NUM_UDP_PCB 4
119+
#endif
120+
#ifndef MEMP_NUM_PBUF
112121
#define MEMP_NUM_PBUF 8
122+
#endif
123+
#ifndef MEMP_NUM_NETBUF
113124
#define MEMP_NUM_NETBUF 8
125+
#endif
126+
#ifndef MEMP_NUM_NETCONN
127+
#define MEMP_NUM_NETCONN 4
128+
#endif
114129

115130
#define TCP_QUEUE_OOSEQ 0
116131
#define TCP_OVERSIZE 0

0 commit comments

Comments
 (0)