From 9e25e1e07f75ddcb0afbced9172ab859b1f9f688 Mon Sep 17 00:00:00 2001 From: Colin Hogben Date: Mon, 3 Oct 2016 22:48:03 +0100 Subject: [PATCH] lwip: Allow several configuration macros to be set externally. Manually rebasing after the monster restructuring. --- features/FEATURE_LWIP/lwip-interface/lwipopts.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/features/FEATURE_LWIP/lwip-interface/lwipopts.h b/features/FEATURE_LWIP/lwip-interface/lwipopts.h index 48cb655b48..dc6f240d08 100644 --- a/features/FEATURE_LWIP/lwip-interface/lwipopts.h +++ b/features/FEATURE_LWIP/lwip-interface/lwipopts.h @@ -105,12 +105,27 @@ #define LWIP_RAM_HEAP_POINTER lwip_ram_heap +#ifndef PBUF_POOL_SIZE #define PBUF_POOL_SIZE 5 +#endif +#ifndef MEMP_NUM_TCP_PCB_LISTEN #define MEMP_NUM_TCP_PCB_LISTEN 4 +#endif +#ifndef MEMP_NUM_TCP_PCB #define MEMP_NUM_TCP_PCB 4 +#endif +#ifndef MEMP_NUM_UDP_PCB #define MEMP_NUM_UDP_PCB 4 +#endif +#ifndef MEMP_NUM_PBUF #define MEMP_NUM_PBUF 8 +#endif +#ifndef MEMP_NUM_NETBUF #define MEMP_NUM_NETBUF 8 +#endif +#ifndef MEMP_NUM_NETCONN +#define MEMP_NUM_NETCONN 4 +#endif #define TCP_QUEUE_OOSEQ 0 #define TCP_OVERSIZE 0