From 6db90b15afc65acb82983fcb4e7fbcd904cfd282 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Sun, 6 Dec 2009 23:50:17 +0000 Subject: fix the cortex-m3 context switch bug when interrupt preempts pendsv exception; add RT_LWIP_ETH_PAD_SIZE option; fix device activate flag set issue in init function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@193 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- net/lwip/src/lwipopts.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net') diff --git a/net/lwip/src/lwipopts.h b/net/lwip/src/lwipopts.h index c17573bb78..b31df7684f 100644 --- a/net/lwip/src/lwipopts.h +++ b/net/lwip/src/lwipopts.h @@ -46,6 +46,9 @@ #define LWIP_DEBUG #endif +/* Enable SO_RCVTIMEO processing. */ +#define LWIP_SO_RCVTIMEO 1 + /* ---------- Debug options ---------- */ #ifdef LWIP_DEBUG #define SYS_DEBUG LWIP_DBG_OFF @@ -142,7 +145,9 @@ link level header. */ #define PBUF_LINK_HLEN 16 -#define ETH_PAD_SIZE 2 // default is 0 +#ifdef RT_LWIP_ETH_PAD_SIZE +#define ETH_PAD_SIZE RT_LWIP_ETH_PAD_SIZE +#endif /** SYS_LIGHTWEIGHT_PROT * define SYS_LIGHTWEIGHT_PROT in lwipopts.h if you want inter-task protection -- cgit v1.3.1