ConOpSys V2970  P004.07
ANVILEX control operating system
lwipopts.h
Go to the documentation of this file.
1 
2 /**
3  ******************************************************************************
4  * File Name : Target/lwipopts.h
5  * Description : This file overrides LwIP stack default configuration
6  * done in opt.h file.
7  ******************************************************************************
8  * @attention
9  *
10  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
11  * All rights reserved.</center></h2>
12  *
13  * This software component is licensed by ST under Ultimate Liberty license
14  * SLA0044, the "License"; You may not use this file except in compliance with
15  * the License. You may obtain a copy of the License at:
16  * www.st.com/SLA0044
17  *
18  ******************************************************************************
19  */
20 
21 /* Define to prevent recursive inclusion --------------------------------------*/
22 #ifndef __LWIPOPTS__H__
23 #define __LWIPOPTS__H__
24 
25 /*-----------------------------------------------------------------------------*/
26 /* Current version of LwIP supported by CubeMx: 2.1.2 -*/
27 /*-----------------------------------------------------------------------------*/
28 
29 /* Within 'USER CODE' section, code will be kept by default at each generation */
30 /* USER CODE BEGIN 0 */
31 
32 /* USER CODE END 0 */
33 
34 #ifdef __cplusplus
35  extern "C" {
36 #endif
37 
38 /* STM32CubeMX Specific Parameters (not defined in opt.h) ---------------------*/
39 /* Parameters set in STM32CubeMX LwIP Configuration GUI -*/
40 /*----- WITH_RTOS disabled (Since FREERTOS is not set) -----*/
41 #define WITH_RTOS 0
42 /*----- CHECKSUM_BY_HARDWARE enabled -----*/
43 #define CHECKSUM_BY_HARDWARE 1
44 /*-----------------------------------------------------------------------------*/
45 
46 /* LwIP Stack Parameters (modified compared to initialisation value in opt.h) -*/
47 /* Parameters set in STM32CubeMX LwIP Configuration GUI -*/
48 /*----- Value in opt.h for LWIP_DHCP: 0 -----*/
49 #define LWIP_DHCP 1
50 /*----- Value in opt.h for NO_SYS: 0 -----*/
51 #define NO_SYS 1
52 /*----- Value in opt.h for SYS_LIGHTWEIGHT_PROT: 1 -----*/
53 #define SYS_LIGHTWEIGHT_PROT 0
54 /*----- Value in opt.h for MEM_ALIGNMENT: 1 -----*/
55 #define MEM_ALIGNMENT 4
56 /*----- Value in opt.h for MEMP_NUM_SYS_TIMEOUT: (LWIP_TCP + IP_REASSEMBLY + LWIP_ARP + (2*LWIP_DHCP) + LWIP_AUTOIP + LWIP_IGMP + LWIP_DNS + (PPP_SUPPORT*6*MEMP_NUM_PPP_PCB) + (LWIP_IPV6 ? (1 + LWIP_IPV6_REASS + LWIP_IPV6_MLD) : 0)) -*/
57 #define MEMP_NUM_SYS_TIMEOUT 5
58 /*----- Value in opt.h for LWIP_ETHERNET: LWIP_ARP || PPPOE_SUPPORT -*/
59 #define LWIP_ETHERNET 1
60 /*----- Value in opt.h for LWIP_DNS_SECURE: (LWIP_DNS_SECURE_RAND_XID | LWIP_DNS_SECURE_NO_MULTIPLE_OUTSTANDING | LWIP_DNS_SECURE_RAND_SRC_PORT) -*/
61 #define LWIP_DNS_SECURE 7
62 /*----- Value in opt.h for TCP_SND_QUEUELEN: (4*TCP_SND_BUF + (TCP_MSS - 1))/TCP_MSS -----*/
63 #define TCP_SND_QUEUELEN 9
64 /*----- Value in opt.h for TCP_SNDLOWAT: LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (TCP_SND_BUF) - 1) -*/
65 #define TCP_SNDLOWAT 1071
66 /*----- Value in opt.h for TCP_SNDQUEUELOWAT: LWIP_MAX(TCP_SND_QUEUELEN)/2, 5) -*/
67 #define TCP_SNDQUEUELOWAT 5
68 /*----- Value in opt.h for TCP_WND_UPDATE_THRESHOLD: LWIP_MIN(TCP_WND/4, TCP_MSS*4) -----*/
69 #define TCP_WND_UPDATE_THRESHOLD 536
70 /*----- Value in opt.h for LWIP_NETIF_LINK_CALLBACK: 0 -----*/
71 #define LWIP_NETIF_LINK_CALLBACK 1
72 /*----- Value in opt.h for LWIP_NETCONN: 1 -----*/
73 #define LWIP_NETCONN 0
74 /*----- Value in opt.h for LWIP_SOCKET: 1 -----*/
75 #define LWIP_SOCKET 0
76 /*----- Value in opt.h for RECV_BUFSIZE_DEFAULT: INT_MAX -----*/
77 #define RECV_BUFSIZE_DEFAULT 2000000000
78 /*----- Default Value for LWIP_HTTPD: 0 ---*/
79 #define LWIP_HTTPD 1
80 /*----- Value in opt.h for HTTPD_USE_CUSTOM_FSDATA: 0 -----*/
81 #define HTTPD_USE_CUSTOM_FSDATA 1
82 /*----- Value in opt.h for LWIP_STATS: 1 -----*/
83 #define LWIP_STATS 0
84 /*----- Value in opt.h for CHECKSUM_GEN_IP: 1 -----*/
85 #define CHECKSUM_GEN_IP 0
86 /*----- Value in opt.h for CHECKSUM_GEN_UDP: 1 -----*/
87 #define CHECKSUM_GEN_UDP 0
88 /*----- Value in opt.h for CHECKSUM_GEN_TCP: 1 -----*/
89 #define CHECKSUM_GEN_TCP 0
90 /*----- Value in opt.h for CHECKSUM_GEN_ICMP: 1 -----*/
91 #define CHECKSUM_GEN_ICMP 0
92 /*----- Value in opt.h for CHECKSUM_GEN_ICMP6: 1 -----*/
93 #define CHECKSUM_GEN_ICMP6 0
94 /*----- Value in opt.h for CHECKSUM_CHECK_IP: 1 -----*/
95 #define CHECKSUM_CHECK_IP 0
96 /*----- Value in opt.h for CHECKSUM_CHECK_UDP: 1 -----*/
97 #define CHECKSUM_CHECK_UDP 0
98 /*----- Value in opt.h for CHECKSUM_CHECK_TCP: 1 -----*/
99 #define CHECKSUM_CHECK_TCP 0
100 /*----- Value in opt.h for CHECKSUM_CHECK_ICMP: 1 -----*/
101 #define CHECKSUM_CHECK_ICMP 0
102 /*----- Value in opt.h for CHECKSUM_CHECK_ICMP6: 1 -----*/
103 #define CHECKSUM_CHECK_ICMP6 0
104 /*-----------------------------------------------------------------------------*/
105 /* USER CODE BEGIN 1 */
106 
107 /* USER CODE END 1 */
108 
109 #ifdef __cplusplus
110 }
111 #endif
112 #endif /*__LWIPOPTS__H__ */
113 
114 /************************* (C) COPYRIGHT STMicroelectronics *****END OF FILE****/