From 4109fb7d073b365035756ad123e4d450e4db50e0 Mon Sep 17 00:00:00 2001 From: Andreas Rebert Date: Fri, 6 Dec 2013 15:36:37 +0100 Subject: [PATCH 1/2] [LPC4088]: Networking was broking when splitting peripheral RAM into two sections --- libraries/net/lwip/lwip/lwipopts.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/net/lwip/lwip/lwipopts.h b/libraries/net/lwip/lwip/lwipopts.h index 4d07680dbcf..8282ff5d409 100644 --- a/libraries/net/lwip/lwip/lwipopts.h +++ b/libraries/net/lwip/lwip/lwipopts.h @@ -48,7 +48,11 @@ // 32-bit alignment #define MEM_ALIGNMENT 4 +#if defined(TARGET_LPC4088) +#define MEM_SIZE 15360 +#elif #define MEM_SIZE 16362 +#endif #define PBUF_POOL_SIZE 5 #define MEMP_NUM_TCP_PCB_LISTEN 4 From f5511ff82a7c5cce4b16c92c10ff18268891bdbf Mon Sep 17 00:00:00 2001 From: Andreas Rebert Date: Sat, 7 Dec 2013 12:29:06 +0100 Subject: [PATCH 2/2] [LPC4088]: elif should have been else --- libraries/net/lwip/lwip/lwipopts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/net/lwip/lwip/lwipopts.h b/libraries/net/lwip/lwip/lwipopts.h index 8282ff5d409..b2f5d7f72e8 100644 --- a/libraries/net/lwip/lwip/lwipopts.h +++ b/libraries/net/lwip/lwip/lwipopts.h @@ -50,7 +50,7 @@ #if defined(TARGET_LPC4088) #define MEM_SIZE 15360 -#elif +#else #define MEM_SIZE 16362 #endif