cueOS
2.4
cueOS - Universal Show Control OS for ARM
lwipopts.h
1
21
/* Define to prevent recursive inclusion --------------------------------------*/
22
#ifndef __LWIPOPTS__H__
23
#define __LWIPOPTS__H__
24
#include "FreeRTOS.h"
25
26
/*-----------------------------------------------------------------------------*/
27
/* Current version of LwIP supported by CubeMx: 2.0.3 -*/
28
/*-----------------------------------------------------------------------------*/
29
30
/* Within 'USER CODE' section, code will be kept by default at each generation */
31
/* USER CODE BEGIN 0 */
32
33
/* USER CODE END 0 */
34
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
39
/* STM32CubeMX Specific Parameters (not defined in opt.h) ---------------------*/
40
/* Parameters set in STM32CubeMX LwIP Configuration GUI -*/
41
/*----- WITH_RTOS enabled (Since FREERTOS is set) -----*/
42
#define WITH_RTOS 1
43
/*----- CHECKSUM_BY_HARDWARE enabled -----*/
44
#define CHECKSUM_BY_HARDWARE 1
45
/*-----------------------------------------------------------------------------*/
46
47
//TODO: clean config file. It's quite ugly ATM
48
49
/* LwIP Stack Parameters (modified compared to initialization value in opt.h) -*/
50
/* Parameters set in STM32CubeMX LwIP Configuration GUI -*/
51
/*----- Value in opt.h for MEM_ALIGNMENT: 1 -----*/
52
#define MEM_ALIGNMENT 4
53
/*----- Value in opt.h for LWIP_ETHERNET: LWIP_ARP || PPPOE_SUPPORT -*/
54
#define LWIP_ETHERNET 1
55
/*----- 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) -*/
56
#define LWIP_DNS_SECURE 7
57
/*----- Value in opt.h for TCP_SND_QUEUELEN: (4*TCP_SND_BUF + (TCP_MSS - 1))/TCP_MSS -----*/
58
#define TCP_SND_QUEUELEN 9
59
/*----- Value in opt.h for TCP_SNDLOWAT: LWIP_MIN(LWIP_MAX(((TCP_SND_BUF)/2), (2 * TCP_MSS) + 1), (TCP_SND_BUF) - 1) -*/
60
#define TCP_SNDLOWAT 1071
61
/*----- Value in opt.h for TCP_SNDQUEUELOWAT: LWIP_MAX(TCP_SND_QUEUELEN)/2, 5) -*/
62
#define TCP_SNDQUEUELOWAT 5
63
/*----- Value in opt.h for TCP_WND_UPDATE_THRESHOLD: LWIP_MIN(TCP_WND/4, TCP_MSS*4) -----*/
64
#define TCP_WND_UPDATE_THRESHOLD 536
65
/*----- Default Value for LWIP_NETIF_STATUS_CALLBACK: 0 ---*/
66
#define LWIP_NETIF_STATUS_CALLBACK 1
67
/*----- Default Value for LWIP_NETIF_LINK_CALLBACK: 0 ---*/
68
#define LWIP_NETIF_LINK_CALLBACK 1
69
/*----- Value in opt.h for TCPIP_THREAD_STACKSIZE: 0 -----*/
70
#define TCPIP_THREAD_STACKSIZE 1024
71
/*----- Value in opt.h for TCPIP_THREAD_PRIO: 1 -----*/
72
#define TCPIP_THREAD_PRIO 3
73
/*----- Value in opt.h for TCPIP_MBOX_SIZE: 0 -----*/
74
#define TCPIP_MBOX_SIZE 6
75
/*----- Value in opt.h for SLIPIF_THREAD_STACKSIZE: 0 -----*/
76
#define SLIPIF_THREAD_STACKSIZE 1024
77
/*----- Value in opt.h for SLIPIF_THREAD_PRIO: 1 -----*/
78
#define SLIPIF_THREAD_PRIO 3
79
/*----- Value in opt.h for DEFAULT_THREAD_STACKSIZE: 0 -----*/
80
#define DEFAULT_THREAD_STACKSIZE 1024
81
/*----- Value in opt.h for DEFAULT_THREAD_PRIO: 1 -----*/
82
#define DEFAULT_THREAD_PRIO 3
83
/*----- Value in opt.h for DEFAULT_UDP_RECVMBOX_SIZE: 0 -----*/
84
#define DEFAULT_UDP_RECVMBOX_SIZE 6
85
/*----- Value in opt.h for DEFAULT_TCP_RECVMBOX_SIZE: 0 -----*/
86
#define DEFAULT_TCP_RECVMBOX_SIZE 6
87
/*----- Value in opt.h for DEFAULT_ACCEPTMBOX_SIZE: 0 -----*/
88
#define DEFAULT_ACCEPTMBOX_SIZE 6
89
/*----- Value in opt.h for RECV_BUFSIZE_DEFAULT: INT_MAX -----*/
90
#define RECV_BUFSIZE_DEFAULT 2000000000
91
/*----- Default Value for LWIP_TFTP: 0 ---*/
92
#define LWIP_TFTP 0
93
/*----- Value in opt.h for LWIP_STATS: 1 -----*/
94
#define LWIP_STATS 0
95
/*----- Value in opt.h for CHECKSUM_GEN_ICMP6: 1 -----*/
96
#define CHECKSUM_GEN_ICMP6 0
97
/*----- Value in opt.h for CHECKSUM_CHECK_ICMP6: 1 -----*/
98
#define CHECKSUM_CHECK_ICMP6 0
99
/*-----------------------------------------------------------------------------*/
100
/* USER CODE BEGIN 1 */
101
#define LWIP_DHCP 1
102
#define LWIP_DHCP_CHECK_LINK_UP 1
103
#define MEMP_NUM_UDP_PCB 4
104
#define MEMP_NUM_TCP_PCB 4
105
#define LWIP_IGMP 1
106
#define LWIP_MULTICAST_PING 1
107
108
/* USER CODE END 1 */
109
110
#ifdef __cplusplus
111
}
112
#endif
113
#endif
/*__LWIPOPTS__H__ */
114
115
/************************* (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
net
inc
lwipopts.h
Generated by
1.9.4