NXP LPC LWIP port documentation  v0.80
LWIP port for LPC devices
C:/lwip_lpc/nxpcommon/examples/ea1788_tcpecho_sa/source/configs/iram_zc/lwipopts.h
Go to the documentation of this file.
00001 /**********************************************************************
00002 * $Id$    lwipopts.h      2011-11-20
00003 */
00026 #ifndef __LWIP_USER_OPT_H__
00027 #define __LWIP_USER_OPT_H__
00028 
00029 /* Standalone build */
00030 #define NO_SYS                          1
00031 
00032 /* Use LWIP timers */
00033 #define NO_SYS_NO_TIMERS        0
00034 
00035 /* 32-bit alignment */
00036 #define MEM_ALIGNMENT                   4
00037 
00038 /* pbuf buffers in pool. In zero-copy mode, these buffers are
00039    located in peripheral RAM. In copied mode, they are located in
00040    internal IRAM */
00041 #define PBUF_POOL_SIZE                  4
00042 
00043  /* No padding needed */
00044 #define ETH_PAD_SIZE                    0
00045 
00046 #define IP_SOF_BROADCAST        1
00047 #define IP_SOF_BROADCAST_RECV     1
00048 
00049 /* The ethernet FCS is performed in hardware. The IP, TCP, and UDP
00050    CRCs still need to be done in hardware. */
00051 #define CHECKSUM_GEN_IP                 1
00052 #define CHECKSUM_GEN_UDP                1
00053 #define CHECKSUM_GEN_TCP                1
00054 #define CHECKSUM_CHECK_IP               1
00055 #define CHECKSUM_CHECK_UDP              1
00056 #define CHECKSUM_CHECK_TCP              1
00057 #define LWIP_CHECKSUM_ON_COPY           1
00058 
00059 /* Use LWIP version of htonx() to allow generic functionality across
00060    all platforms. If you are using the Cortex Mx devices, you might
00061    be able to use the Cortex __rev instruction instead. */
00062 #define LWIP_PLATFORM_BYTESWAP      0
00063 
00068 #define MEM_SIZE            16384
00069 
00070 /* DHCP is ok, UDP is required with DHCP */
00071 #define LWIP_DHCP                       1
00072 #define LWIP_UDP                        1
00073 
00074 /* Hostname can be used */
00075 #define LWIP_NETIF_HOSTNAME             1
00076 
00077 #define LWIP_BROADCAST_PING       0
00078 
00079 /* MSS should match the hardware packet size */
00080 #define TCP_MSS                         1460
00081 #define TCP_SND_BUF           (2 * TCP_MSS)
00082 
00083 #define LWIP_SOCKET                     0
00084 #define LWIP_NETCONN                    0
00085 #define MEMP_NUM_SYS_TIMEOUT            300
00086 
00087 #define LWIP_STATS                      0
00088 #define LINK_STATS            0
00089 #define LWIP_STATS_DISPLAY              0
00090 
00091 /* There are more *_DEBUG options that can be selected.
00092    See opts.h. Make sure that LWIP_DEBUG is defined when
00093    building the code to use debug. */
00094 #define TCP_DEBUG                       LWIP_DBG_OFF
00095 #define ETHARP_DEBUG                    LWIP_DBG_OFF
00096 #define PBUF_DEBUG                      LWIP_DBG_OFF
00097 #define IP_DEBUG                        LWIP_DBG_OFF
00098 #define TCPIP_DEBUG                     LWIP_DBG_OFF
00099 #define DHCP_DEBUG                      LWIP_DBG_OFF
00100 #define UDP_DEBUG                       LWIP_DBG_OFF
00101 
00102 /* This define is custom for the LPC EMAC driver. Enabled it to
00103    get debug messages for the driver. */
00104 #define UDP_LPC_EMAC                    LWIP_DBG_OFF
00105 
00106 #endif /* __LWIP_USER_OPT_H__ */