]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
bd938413b2751a9d728789cd7b6e5a247408a88e
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-UDP / include / FreeRTOSIPConfigDefaults.h
1 /*\r
2  * FreeRTOS+UDP V1.0.0 (C) 2013 Real Time Engineers ltd.\r
3  *\r
4  * FreeRTOS+UDP is an add-on component to FreeRTOS.  It is not, in itself, part\r
5  * of the FreeRTOS kernel.  FreeRTOS+UDP is licensed separately from FreeRTOS,\r
6  * and uses a different license to FreeRTOS.  FreeRTOS+UDP uses a dual license\r
7  * model, information on which is provided below:\r
8  *\r
9  * - Open source licensing -\r
10  * FreeRTOS+UDP is a free download and may be used, modified and distributed\r
11  * without charge provided the user adheres to version two of the GNU General\r
12  * Public license (GPL) and does not remove the copyright notice or this text.\r
13  * The GPL V2 text is available on the gnu.org web site, and on the following\r
14  * URL: http://www.FreeRTOS.org/gpl-2.0.txt\r
15  *\r
16  * - Commercial licensing -\r
17  * Businesses and individuals who wish to incorporate FreeRTOS+UDP into\r
18  * proprietary software for redistribution in any form must first obtain a\r
19  * (very) low cost commercial license - and in-so-doing support the maintenance,\r
20  * support and further development of the FreeRTOS+UDP product.  Commercial\r
21  * licenses can be obtained from http://shop.freertos.org and do not require any\r
22  * source files to be changed.\r
23  *\r
24  * FreeRTOS+UDP is distributed in the hope that it will be useful.  You cannot\r
25  * use FreeRTOS+UDP unless you agree that you use the software 'as is'.\r
26  * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied\r
27  * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
28  * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they\r
29  * implied, expressed, or statutory.\r
30  *\r
31  * 1 tab == 4 spaces!\r
32  *\r
33  * http://www.FreeRTOS.org\r
34  * http://www.FreeRTOS.org/udp\r
35  *\r
36  */\r
37 \r
38 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H\r
39 #define FREERTOS_DEFAULT_IP_CONFIG_H\r
40 \r
41 /* This file provides default values for configuration options that are missing\r
42 from the FreeRTOSIPConfig.h configuration header file. */\r
43 \r
44 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK\r
45         #define ipconfigUSE_NETWORK_EVENT_HOOK 0\r
46 #endif\r
47 \r
48 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS\r
49         #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )\r
50 #endif\r
51 \r
52 #ifndef ipconfigARP_CACHE_ENTRIES\r
53         #define ipconfigARP_CACHE_ENTRIES               10\r
54 #endif\r
55 \r
56 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS\r
57         #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )\r
58 #endif\r
59 \r
60 #ifndef ipconfigMAX_ARP_AGE\r
61         #define ipconfigMAX_ARP_AGE                     150\r
62 #endif\r
63 \r
64 #ifndef ipconfigINCLUDE_FULL_INET_ADDR\r
65         #define ipconfigINCLUDE_FULL_INET_ADDR  1\r
66 #endif\r
67 \r
68 #ifndef ipconfigNUM_NETWORK_BUFFERS\r
69         #define ipconfigNUM_NETWORK_BUFFERS             45\r
70 #endif\r
71 \r
72 #ifndef ipconfigEVENT_QUEUE_LENGTH\r
73         #define ipconfigEVENT_QUEUE_LENGTH              ( ipconfigNUM_NETWORK_BUFFERS + 5 )\r
74 #endif\r
75 \r
76 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND\r
77         #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1\r
78 #endif\r
79 \r
80 #ifndef updconfigIP_TIME_TO_LIVE\r
81         #define updconfigIP_TIME_TO_LIVE                128\r
82 #endif\r
83 \r
84 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS\r
85         #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0\r
86 #endif\r
87 \r
88 #ifndef ipconfigNETWORK_MTU\r
89         #define ipconfigNETWORK_MTU 1500\r
90 #endif\r
91 \r
92 #ifndef ipconfigUSE_DHCP\r
93         #define ipconfigUSE_DHCP        1\r
94 #endif\r
95 \r
96 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD\r
97         #ifdef _WINDOWS_\r
98                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 999 / portTICK_RATE_MS )\r
99         #else\r
100                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 30000 / portTICK_RATE_MS )\r
101         #endif /* _WINDOWS_ */\r
102 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */\r
103 \r
104 #ifndef ipconfigUSE_DNS\r
105         #define ipconfigUSE_DNS         1\r
106 #endif\r
107 \r
108 #ifndef ipconfigREPLY_TO_INCOMING_PINGS\r
109         #define ipconfigREPLY_TO_INCOMING_PINGS                         1\r
110 #endif\r
111 \r
112 #ifndef ipconfigSUPPORT_OUTGOING_PINGS\r
113         #define ipconfigSUPPORT_OUTGOING_PINGS                          0\r
114 #endif\r
115 \r
116 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS\r
117         #define updconfigLOOPBACK_ETHERNET_PACKETS      0\r
118 #endif\r
119 \r
120 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES\r
121         #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1\r
122 #endif\r
123 \r
124 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES\r
125         #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES     1\r
126 #endif\r
127 \r
128 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
129         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0\r
130 #else\r
131         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
132 #endif\r
133 \r
134 #ifndef ipconfigFREERTOS_PLUS_NABTO\r
135         #define ipconfigFREERTOS_PLUS_NABTO 0\r
136 #endif\r
137 \r
138 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */\r