puzzlebox
Loading...
Searching...
No Matches
lwipopts.h
1#pragma once
2
3#define NO_SYS 0
4#define LWIP_SOCKET 1
5
6#if PICO_CYW43_ARCH_POLL
7#define MEM_LIBC_MALLOC 1
8#else
9#define MEM_LIBC_MALLOC 0
10#endif
11
12#define MEM_ALIGNMENT 4
13#define MEM_SIZE 4000
14#define MEMP_NUM_TCP_SEG 32
15#define MEMP_NUM_ARP_QUEUE 10
16#define PBUF_POOL_SIZE 24
17#define LWIP_ARP 1
18#define LWIP_ETHERNET 1
19#define LWIP_ICMP 1
20#define LWIP_RAW 1
21#define TCP_WND (8 * TCP_MSS)
22#define TCP_MSS 1460
23#define TCP_SND_BUF (8 * TCP_MSS)
24#define TCP_SND_QUEUELEN ((4 * (TCP_SND_BUF) + (TCP_MSS - 1)) / (TCP_MSS))
25#define LWIP_NETIF_STATUS_CALLBACK 1
26#define LWIP_NETIF_LINK_CALLBACK 1
27#define LWIP_NETIF_HOSTNAME 1
28#define LWIP_NETCONN 0
29#define MEM_STATS 0
30#define SYS_STATS 0
31#define MEMP_STATS 0
32#define LINK_STATS 0
33// #define ETH_PAD_SIZE 2
34#define LWIP_CHKSUM_ALGORITHM 3
35#define LWIP_DHCP 1
36#define LWIP_IPV4 1
37#define LWIP_TCP 1
38#define LWIP_UDP 1
39#define LWIP_DNS 1
40#define LWIP_TCP_KEEPALIVE 1
41#define LWIP_NETIF_TX_SINGLE_PBUF 1
42#define DHCP_DOES_ARP_CHECK 0
43#define LWIP_DHCP_DOES_ACD_CHECK 0
44
45#ifndef NDEBUG
46#define LWIP_DEBUG 1
47#define LWIP_STATS 1
48#define LWIP_STATS_DISPLAY 1
49#endif
50
51#define ETHARP_DEBUG LWIP_DBG_OFF
52#define NETIF_DEBUG LWIP_DBG_OFF
53#define PBUF_DEBUG LWIP_DBG_OFF
54#define API_LIB_DEBUG LWIP_DBG_OFF
55#define API_MSG_DEBUG LWIP_DBG_OFF
56#define SOCKETS_DEBUG LWIP_DBG_OFF
57#define ICMP_DEBUG LWIP_DBG_OFF
58#define INET_DEBUG LWIP_DBG_OFF
59#define IP_DEBUG LWIP_DBG_OFF
60#define IP_REASS_DEBUG LWIP_DBG_OFF
61#define RAW_DEBUG LWIP_DBG_OFF
62#define MEM_DEBUG LWIP_DBG_OFF
63#define MEMP_DEBUG LWIP_DBG_OFF
64#define SYS_DEBUG LWIP_DBG_OFF
65#define TCP_DEBUG LWIP_DBG_OFF
66#define TCP_INPUT_DEBUG LWIP_DBG_OFF
67#define TCP_OUTPUT_DEBUG LWIP_DBG_OFF
68#define TCP_RTO_DEBUG LWIP_DBG_OFF
69#define TCP_CWND_DEBUG LWIP_DBG_OFF
70#define TCP_WND_DEBUG LWIP_DBG_OFF
71#define TCP_FR_DEBUG LWIP_DBG_OFF
72#define TCP_QLEN_DEBUG LWIP_DBG_OFF
73#define TCP_RST_DEBUG LWIP_DBG_OFF
74#define UDP_DEBUG LWIP_DBG_OFF
75#define TCPIP_DEBUG LWIP_DBG_OFF
76#define PPP_DEBUG LWIP_DBG_OFF
77#define SLIP_DEBUG LWIP_DBG_OFF
78#define DHCP_DEBUG LWIP_DBG_OFF
79
80#define TCPIP_THREAD_STACKSIZE 2048
81#define DEFAULT_THREAD_STACKSIZE 1024
82#define DEFAULT_RAW_RECVMBOX_SIZE 8
83#define TCPIP_MBOX_SIZE 8
84
85#define DEFAULT_UDP_RECVMBOX_SIZE TCPIP_MBOX_SIZE
86#define DEFAULT_TCP_RECVMBOX_SIZE TCPIP_MBOX_SIZE
87#define DEFAULT_ACCEPTMBOX_SIZE TCPIP_MBOX_SIZE
88
89#define LWIP_TIMEVAL_PRIVATE 0
90
91#define LWIP_TCPIP_CORE_LOCKING_INPUT 1