temporarily comment out all the lwip related code

This commit is contained in:
hathach
2013-09-18 21:08:48 +07:00
parent 8738902495
commit 9d87a1c62b
7 changed files with 153 additions and 61 deletions

View File

@@ -49,7 +49,7 @@
/* the number of buffers in the pbuf pool. In zero-copy mode, these buffers are
located in peripheral RAM. In copied mode, they are located in internal IRAM */
#define PBUF_POOL_SIZE 7
#define PBUF_POOL_SIZE 5
#define ETH_PAD_SIZE 0
@@ -77,18 +77,18 @@
#define LWIP_PLATFORM_BYTESWAP 0
/* Non-static memory, used with DMA pool */
#define MEM_SIZE (12 * 1024)
#define MEM_SIZE (6 * 1024)
//--------------------------------------------------------------------+
// Protocols
//--------------------------------------------------------------------+
#define LWIP_RAW 1
#define LWIP_DHCP 1
#define LWIP_RAW 0
#define LWIP_DHCP 0
#define LWIP_SNMP 0
#define LWIP_IGMP 0
#define LWIP_DNS 0
#define LWIP_UDP 1
#define LWIP_UDP 0
#define LWIP_TCP 1
/* Hostname can be used */
@@ -103,9 +103,13 @@
#define TCP_MSS 1460
#define TCP_SND_BUF (2 * TCP_MSS)
//--------------------------------------------------------------------+
// API
//--------------------------------------------------------------------+
#define LWIP_SOCKET 0
#define LWIP_NETCONN 0
#define MEMP_NUM_SYS_TIMEOUT 300 // FIXME check settings
#define LWIP_NETCONN 1
#define MEMP_NUM_SYS_TIMEOUT 100 // FIXME check settings
//--------------------------------------------------------------------+
// Statistics options
@@ -117,35 +121,38 @@
//--------------------------------------------------------------------+
// DEBUG options
//--------------------------------------------------------------------+
#define LWIP_DEBUG
/* There are more *_DEBUG options that can be selected.
See opts.h. Make sure that LWIP_DEBUG is defined when
building the code to use debug. */
#define TCP_DEBUG LWIP_DBG_OFF
#define TCP_DEBUG LWIP_DBG_TRACE
#define ETHARP_DEBUG LWIP_DBG_OFF
#define PBUF_DEBUG LWIP_DBG_OFF
#define IP_DEBUG LWIP_DBG_OFF
#define IP_DEBUG LWIP_DBG_TRACE
#define TCPIP_DEBUG LWIP_DBG_OFF
#define DHCP_DEBUG LWIP_DBG_OFF
#define UDP_DEBUG LWIP_DBG_OFF
/* This define is custom for the LPC EMAC driver. Enabled it to
get debug messages for the driver. */
#define EMAC_DEBUG LWIP_DBG_OFF
#define EMAC_DEBUG LWIP_DBG_TRACE
#define UDP_LPC_EMAC LWIP_DBG_OFF
//--------------------------------------------------------------------+
// FreeRTOS
//--------------------------------------------------------------------+
#define DEFAULT_THREAD_PRIO (tskIDLE_PRIORITY + 1)
#define DEFAULT_THREAD_STACKSIZE (512)
#define DEFAULT_THREAD_STACKSIZE (256)
#define DEFAULT_ACCEPTMBOX_SIZE 6
#define DEFAULT_ACCEPTMBOX_SIZE 6
#define DEFAULT_TCP_RECVMBOX_SIZE 6
#define DEFAULT_UDP_RECVMBOX_SIZE 6
/* TCPIP thread must run at higher priority than MAC threads! */
#define TCPIP_THREAD_PRIO (DEFAULT_THREAD_PRIO + configMAX_PRIORITIES - 1)
#define TCPIP_THREAD_PRIO (configMAX_PRIORITIES - 1)
#define TCPIP_THREAD_STACKSIZE (512)
#define TCPIP_MBOX_SIZE 6
#define TCPIP_MBOX_SIZE 3
#endif /* __LWIPOPTS_H_ */