STM32Ethernet
Arduino Ethernet library for STM32 boards
Loading...
Searching...
No Matches
lwipopts_default.h File Reference

lwIP Options Configuration. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NO_SYS   1
 
#define LWIP_DBG_DEFAULT   LWIP_DBG_ON
 
#define LWIP_DEBUG   LWIP_DBG_DEFAULT
 
#define NETIF_DEBUG   LWIP_DBG_DEFAULT
 
#define DHCP_DEBUG   LWIP_DBG_DEFAULT
 
#define UDP_DEBUG   LWIP_DBG_DEFAULT
 
#define MEMP_DEBUG   LWIP_DBG_DEFAULT
 
#define MEM_DEBUG   LWIP_DBG_DEFAULT
 
#define ICMP_DEBUG   LWIP_DBG_DEFAULT
 
#define SYS_LIGHTWEIGHT_PROT   0
 
#define LWIP_NOASSERT
 
#define MEM_ALIGNMENT   4
 
#define MEM_SIZE   (10*1024)
 
#define MEMP_NUM_PBUF   10
 
#define MEMP_NUM_UDP_PCB   6
 
#define MEMP_NUM_TCP_PCB   10
 
#define MEMP_NUM_TCP_PCB_LISTEN   6
 
#define MEMP_NUM_TCP_SEG   8
 
#define MEMP_NUM_SYS_TIMEOUT   10
 
#define PBUF_POOL_SIZE   8
 
#define PBUF_POOL_BUFSIZE   1524
 
#define LWIP_TCP   1
 
#define TCP_TTL   255
 
#define LWIP_SO_RCVTIMEO   1
 
#define LWIP_SO_RCVRCVTIMEO_NONSTANDARD   1 /* Pass an integer number of ms instead of a timeval struct. */
 
#define LWIP_SO_SNDTIMEO   1
 
#define LWIP_SO_SNDRCVTIMEO_NONSTANDARD   1 /* Pass an integer number of ms instead of a timeval struct. */
 
#define TCP_QUEUE_OOSEQ   0
 
#define TCP_MSS   (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */
 
#define TCP_SND_BUF   (4*TCP_MSS)
 
#define TCP_SND_QUEUELEN   (2* TCP_SND_BUF/TCP_MSS)
 
#define TCP_WND   (4*TCP_MSS)
 
#define LWIP_TCP_KEEPALIVE   1 /* Keep the TCP link active. Important for MQTT/TLS */
 
#define LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS
 
#define LWIP_ICMP   1
 
#define LWIP_RAW   1 /* PING changed to 1 */
 
#define DEFAULT_RAW_RECVMBOX_SIZE   3 /* for ICMP PING */
 
#define LWIP_DHCP   1
 
#define LWIP_UDP   1
 
#define UDP_TTL   255
 
#define LWIP_STATS   0
 
#define LWIP_PROVIDE_ERRNO
 
#define LWIP_NETIF_HOSTNAME   1
 
#define LWIP_NETIF_STATUS_CALLBACK   1
 
#define LWIP_NETIF_LINK_CALLBACK   1
 
#define LWIP_DHCP_CHECK_LINK_UP   1
 
#define CHECKSUM_BY_HARDWARE
 
#define CHECKSUM_GEN_IP   0
 
#define CHECKSUM_GEN_UDP   0
 
#define CHECKSUM_GEN_TCP   0
 
#define CHECKSUM_CHECK_IP   0
 
#define CHECKSUM_CHECK_UDP   0
 
#define CHECKSUM_CHECK_TCP   0
 
#define CHECKSUM_GEN_ICMP   0
 
#define LWIP_NETCONN   0
 
#define LWIP_SOCKET   0
 
#define LWIP_DNS   1
 
#define LWIP_HTTPD_CGI   1
 
#define LWIP_HTTPD_SSI   1
 
#define HTTPD_USE_CUSTOM_FSDATA   0
 
#define ETHERNET_RMII_MODE_CONFIGURATION   1
 

Detailed Description

lwIP Options Configuration.

Author
MCD Application Team

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.

Attention

© Copyright (c) 2017 STMicroelectronics International N.V. All rights reserved.

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

Macro Definition Documentation

◆ CHECKSUM_BY_HARDWARE

#define CHECKSUM_BY_HARDWARE

◆ CHECKSUM_CHECK_IP

#define CHECKSUM_CHECK_IP   0

◆ CHECKSUM_CHECK_TCP

#define CHECKSUM_CHECK_TCP   0

◆ CHECKSUM_CHECK_UDP

#define CHECKSUM_CHECK_UDP   0

◆ CHECKSUM_GEN_ICMP

#define CHECKSUM_GEN_ICMP   0

◆ CHECKSUM_GEN_IP

#define CHECKSUM_GEN_IP   0

◆ CHECKSUM_GEN_TCP

#define CHECKSUM_GEN_TCP   0

◆ CHECKSUM_GEN_UDP

#define CHECKSUM_GEN_UDP   0

◆ DEFAULT_RAW_RECVMBOX_SIZE

#define DEFAULT_RAW_RECVMBOX_SIZE   3 /* for ICMP PING */

◆ DHCP_DEBUG

#define DHCP_DEBUG   LWIP_DBG_DEFAULT

◆ ETHERNET_RMII_MODE_CONFIGURATION

#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).

◆ HTTPD_USE_CUSTOM_FSDATA

#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)

◆ ICMP_DEBUG

#define ICMP_DEBUG   LWIP_DBG_DEFAULT

◆ LWIP_DBG_DEFAULT

#define LWIP_DBG_DEFAULT   LWIP_DBG_ON

◆ LWIP_DEBUG

#define LWIP_DEBUG   LWIP_DBG_DEFAULT

◆ LWIP_DHCP

#define LWIP_DHCP   1

◆ LWIP_DHCP_CHECK_LINK_UP

#define LWIP_DHCP_CHECK_LINK_UP   1

◆ LWIP_DNS

#define LWIP_DNS   1

◆ LWIP_HTTPD_CGI

#define LWIP_HTTPD_CGI   1

Set this to 1 to support CGI

◆ LWIP_HTTPD_SSI

#define LWIP_HTTPD_SSI   1

Set this to 1 to support SSI (Server-Side-Includes)

◆ LWIP_ICMP

#define LWIP_ICMP   1

◆ LWIP_NETCONN

#define LWIP_NETCONN   0

LWIP_NETCONN==1: Enable Netconn API (require to use api_lib.c)

◆ LWIP_NETIF_HOSTNAME

#define LWIP_NETIF_HOSTNAME   1

◆ LWIP_NETIF_LINK_CALLBACK

#define LWIP_NETIF_LINK_CALLBACK   1

◆ LWIP_NETIF_STATUS_CALLBACK

#define LWIP_NETIF_STATUS_CALLBACK   1

◆ LWIP_NOASSERT

#define LWIP_NOASSERT

◆ LWIP_PROVIDE_ERRNO

#define LWIP_PROVIDE_ERRNO

◆ LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS

#define LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS
Value:
1 /* Prevent the same port to be used after reset.
Otherwise, the remote host may be confused if the port was not explicitly closed before the reset. */

◆ LWIP_RAW

#define LWIP_RAW   1 /* PING changed to 1 */

◆ LWIP_SO_RCVRCVTIMEO_NONSTANDARD

#define LWIP_SO_RCVRCVTIMEO_NONSTANDARD   1 /* Pass an integer number of ms instead of a timeval struct. */

◆ LWIP_SO_RCVTIMEO

#define LWIP_SO_RCVTIMEO   1

◆ LWIP_SO_SNDRCVTIMEO_NONSTANDARD

#define LWIP_SO_SNDRCVTIMEO_NONSTANDARD   1 /* Pass an integer number of ms instead of a timeval struct. */

◆ LWIP_SO_SNDTIMEO

#define LWIP_SO_SNDTIMEO   1

◆ LWIP_SOCKET

#define LWIP_SOCKET   0

LWIP_SOCKET==1: Enable Socket API (require to use sockets.c)

◆ LWIP_STATS

#define LWIP_STATS   0

◆ LWIP_TCP

#define LWIP_TCP   1

◆ LWIP_TCP_KEEPALIVE

#define LWIP_TCP_KEEPALIVE   1 /* Keep the TCP link active. Important for MQTT/TLS */

◆ LWIP_UDP

#define LWIP_UDP   1

◆ MEM_ALIGNMENT

#define MEM_ALIGNMENT   4

◆ MEM_DEBUG

#define MEM_DEBUG   LWIP_DBG_DEFAULT

◆ MEM_SIZE

#define MEM_SIZE   (10*1024)

◆ MEMP_DEBUG

#define MEMP_DEBUG   LWIP_DBG_DEFAULT

◆ MEMP_NUM_PBUF

#define MEMP_NUM_PBUF   10

◆ MEMP_NUM_SYS_TIMEOUT

#define MEMP_NUM_SYS_TIMEOUT   10

◆ MEMP_NUM_TCP_PCB

#define MEMP_NUM_TCP_PCB   10

◆ MEMP_NUM_TCP_PCB_LISTEN

#define MEMP_NUM_TCP_PCB_LISTEN   6

◆ MEMP_NUM_TCP_SEG

#define MEMP_NUM_TCP_SEG   8

◆ MEMP_NUM_UDP_PCB

#define MEMP_NUM_UDP_PCB   6

◆ NETIF_DEBUG

#define NETIF_DEBUG   LWIP_DBG_DEFAULT

◆ NO_SYS

#define NO_SYS   1

NO_SYS==1: Provides VERY minimal functionality. Otherwise, use lwIP facilities.

◆ PBUF_POOL_BUFSIZE

#define PBUF_POOL_BUFSIZE   1524

◆ PBUF_POOL_SIZE

#define PBUF_POOL_SIZE   8

◆ SYS_LIGHTWEIGHT_PROT

#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.

◆ TCP_MSS

#define TCP_MSS   (1500 - 40) /* TCP_MSS = (Ethernet MTU - IP header size - TCP header size) */

◆ TCP_QUEUE_OOSEQ

#define TCP_QUEUE_OOSEQ   0

◆ TCP_SND_BUF

#define TCP_SND_BUF   (4*TCP_MSS)

◆ TCP_SND_QUEUELEN

#define TCP_SND_QUEUELEN   (2* TCP_SND_BUF/TCP_MSS)

◆ TCP_TTL

#define TCP_TTL   255

◆ TCP_WND

#define TCP_WND   (4*TCP_MSS)

◆ UDP_DEBUG

#define UDP_DEBUG   LWIP_DBG_DEFAULT

◆ UDP_TTL

#define UDP_TTL   255