lwIP Options Configuration. More...

Go to the source code of this file.
lwIP Options Configuration.
Default LwIP options used by the library. NO_SYS is set to 1 (no operating system). LwIP debug output is enabled unless NDEBUG is defined.
This software component is licensed by ST under Ultimate Liberty license SLA0044, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: www.st.com/SLA0044
| #define CHECKSUM_BY_HARDWARE |
| #define CHECKSUM_CHECK_IP 0 |
| #define CHECKSUM_CHECK_TCP 0 |
| #define CHECKSUM_CHECK_UDP 0 |
| #define CHECKSUM_GEN_ICMP 0 |
| #define CHECKSUM_GEN_IP 0 |
| #define CHECKSUM_GEN_TCP 0 |
| #define CHECKSUM_GEN_UDP 0 |
| #define DEFAULT_RAW_RECVMBOX_SIZE 3 /* for ICMP PING */ |
| #define DHCP_DEBUG LWIP_DBG_DEFAULT |
| #define ETHERNET_RMII_MODE_CONFIGURATION 1 |
Enables the Ethernet peripheral in RMII mode. If not defined, MII mode will be enabled. Pin mapping must be configured for the selected mode (see PinMap_Ethernet in PeripheralPins.c).
| #define HTTPD_USE_CUSTOM_FSDATA 0 |
Set this to 1 to include "fsdata_custom.c" instead of "fsdata.c" for the file system (to prevent changing the file included in CVS)
| #define ICMP_DEBUG LWIP_DBG_DEFAULT |
| #define LWIP_DBG_DEFAULT LWIP_DBG_ON |
| #define LWIP_DEBUG LWIP_DBG_DEFAULT |
| #define LWIP_DHCP 1 |
| #define LWIP_DHCP_CHECK_LINK_UP 1 |
| #define LWIP_DNS 1 |
| #define LWIP_HTTPD_CGI 1 |
Set this to 1 to support CGI
| #define LWIP_HTTPD_SSI 1 |
Set this to 1 to support SSI (Server-Side-Includes)
| #define LWIP_ICMP 1 |
| #define LWIP_NETCONN 0 |
LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)
| #define LWIP_NETIF_HOSTNAME 1 |
| #define LWIP_NETIF_LINK_CALLBACK 1 |
| #define LWIP_NETIF_STATUS_CALLBACK 1 |
| #define LWIP_NOASSERT |
| #define LWIP_PROVIDE_ERRNO |
| #define LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS |
| #define LWIP_RAW 1 /* PING changed to 1 */ |
| #define LWIP_SO_RCVRCVTIMEO_NONSTANDARD 1 /* Pass an integer number of ms instead of a timeval struct. */ |
| #define LWIP_SO_RCVTIMEO 1 |
| #define LWIP_SO_SNDRCVTIMEO_NONSTANDARD 1 /* Pass an integer number of ms instead of a timeval struct. */ |
| #define LWIP_SO_SNDTIMEO 1 |
| #define LWIP_SOCKET 0 |
LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)
| #define LWIP_STATS 0 |
| #define LWIP_TCP 1 |
| #define LWIP_TCP_KEEPALIVE 1 /* Keep the TCP link active. Important for MQTT/TLS */ |
| #define LWIP_UDP 1 |
| #define MEM_ALIGNMENT 4 |
| #define MEM_DEBUG LWIP_DBG_DEFAULT |
| #define MEM_SIZE (10*1024) |
| #define MEMP_DEBUG LWIP_DBG_DEFAULT |
| #define MEMP_NUM_PBUF 10 |
| #define MEMP_NUM_SYS_TIMEOUT 10 |
| #define MEMP_NUM_TCP_PCB 10 |
| #define MEMP_NUM_TCP_PCB_LISTEN 6 |
| #define MEMP_NUM_TCP_SEG 8 |
| #define MEMP_NUM_UDP_PCB 6 |
| #define NETIF_DEBUG LWIP_DBG_DEFAULT |
| #define NO_SYS 1 |
NO_SYS==1: Provides VERY minimal functionality. Otherwise, use lwIP facilities.
| #define PBUF_POOL_BUFSIZE 1524 |
| #define PBUF_POOL_SIZE 8 |
| #define SYS_LIGHTWEIGHT_PROT 0 |
SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain critical regions during buffer allocation, deallocation and memory allocation and deallocation.
| #define TCP_MSS (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */ |
| #define TCP_QUEUE_OOSEQ 0 |
| #define TCP_SND_BUF (4*TCP_MSS) |
| #define TCP_SND_QUEUELEN (2* TCP_SND_BUF/TCP_MSS) |
| #define TCP_TTL 255 |
| #define TCP_WND (4*TCP_MSS) |
| #define UDP_DEBUG LWIP_DBG_DEFAULT |
| #define UDP_TTL 255 |