]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
***IMMINENT RELEASE NOTICE***
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-UDP / include / FreeRTOSIPConfigDefaults.h
1 /*\r
2  * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.\r
3  * All rights reserved\r
4  *\r
5  * This file is part of the FreeRTOS+UDP distribution.  The FreeRTOS+UDP license\r
6  * terms are different to the FreeRTOS license terms.\r
7  *\r
8  * FreeRTOS+UDP uses a dual license model that allows the software to be used\r
9  * under a standard GPL open source license, or a commercial license.  The\r
10  * standard GPL license (unlike the modified GPL license under which FreeRTOS\r
11  * itself is distributed) requires that all software statically linked with\r
12  * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.\r
13  * Details of both license options follow:\r
14  *\r
15  * - Open source licensing -\r
16  * FreeRTOS+UDP is a free download and may be used, modified, evaluated and\r
17  * distributed without charge provided the user adheres to version two of the\r
18  * GNU General Public License (GPL) and does not remove the copyright notice or\r
19  * this text.  The GPL V2 text is available on the gnu.org web site, and on the\r
20  * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.\r
21  *\r
22  * - Commercial licensing -\r
23  * Businesses and individuals that for commercial or other reasons cannot comply\r
24  * with the terms of the GPL V2 license must obtain a commercial license before\r
25  * incorporating FreeRTOS+UDP into proprietary software for distribution in any\r
26  * form.  Commercial licenses can be purchased from http://shop.freertos.org/udp\r
27  * and do not require any source files to be changed.\r
28  *\r
29  * FreeRTOS+UDP is distributed in the hope that it will be useful.  You cannot\r
30  * use FreeRTOS+UDP unless you agree that you use the software 'as is'.\r
31  * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied\r
32  * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
33  * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they\r
34  * implied, expressed, or statutory.\r
35  *\r
36  * 1 tab == 4 spaces!\r
37  *\r
38  * http://www.FreeRTOS.org\r
39  * http://www.FreeRTOS.org/udp\r
40  *\r
41  */\r
42 \r
43 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H\r
44 #define FREERTOS_DEFAULT_IP_CONFIG_H\r
45 \r
46 /* This file provides default values for configuration options that are missing\r
47 from the FreeRTOSIPConfig.h configuration header file. */\r
48 \r
49 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK\r
50         #define ipconfigUSE_NETWORK_EVENT_HOOK 0\r
51 #endif\r
52 \r
53 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS\r
54         #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )\r
55 #endif\r
56 \r
57 #ifndef ipconfigARP_CACHE_ENTRIES\r
58         #define ipconfigARP_CACHE_ENTRIES               10\r
59 #endif\r
60 \r
61 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS\r
62         #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )\r
63 #endif\r
64 \r
65 #ifndef ipconfigMAX_ARP_AGE\r
66         #define ipconfigMAX_ARP_AGE                     150\r
67 #endif\r
68 \r
69 #ifndef ipconfigINCLUDE_FULL_INET_ADDR\r
70         #define ipconfigINCLUDE_FULL_INET_ADDR  1\r
71 #endif\r
72 \r
73 #ifndef ipconfigNUM_NETWORK_BUFFERS\r
74         #define ipconfigNUM_NETWORK_BUFFERS             45\r
75 #endif\r
76 \r
77 #ifndef ipconfigEVENT_QUEUE_LENGTH\r
78         #define ipconfigEVENT_QUEUE_LENGTH              ( ipconfigNUM_NETWORK_BUFFERS + 5 )\r
79 #endif\r
80 \r
81 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND\r
82         #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1\r
83 #endif\r
84 \r
85 #ifndef updconfigIP_TIME_TO_LIVE\r
86         #define updconfigIP_TIME_TO_LIVE                128\r
87 #endif\r
88 \r
89 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS\r
90         #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0\r
91 #endif\r
92 \r
93 #ifndef ipconfigNETWORK_MTU\r
94         #define ipconfigNETWORK_MTU 1500\r
95 #endif\r
96 \r
97 #ifndef ipconfigUSE_DHCP\r
98         #define ipconfigUSE_DHCP        1\r
99 #endif\r
100 \r
101 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD\r
102         #ifdef _WINDOWS_\r
103                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 999 / portTICK_RATE_MS )\r
104         #else\r
105                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 30000 / portTICK_RATE_MS )\r
106         #endif /* _WINDOWS_ */\r
107 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */\r
108 \r
109 #ifndef ipconfigUSE_DNS\r
110         #define ipconfigUSE_DNS         1\r
111 #endif\r
112 \r
113 #ifndef ipconfigREPLY_TO_INCOMING_PINGS\r
114         #define ipconfigREPLY_TO_INCOMING_PINGS                         1\r
115 #endif\r
116 \r
117 #ifndef ipconfigSUPPORT_OUTGOING_PINGS\r
118         #define ipconfigSUPPORT_OUTGOING_PINGS                          0\r
119 #endif\r
120 \r
121 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS\r
122         #define updconfigLOOPBACK_ETHERNET_PACKETS      0\r
123 #endif\r
124 \r
125 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES\r
126         #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1\r
127 #endif\r
128 \r
129 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES\r
130         #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES     1\r
131 #endif\r
132 \r
133 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
134         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0\r
135 #else\r
136         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
137 #endif\r
138 \r
139 #ifndef ipconfigFREERTOS_PLUS_NABTO\r
140         #define ipconfigFREERTOS_PLUS_NABTO 0\r
141 #endif\r
142 \r
143 #ifndef ipconfigNABTO_TASK_STACK_SIZE\r
144         #define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )\r
145 #endif\r
146 \r
147 #ifndef ipconfigNABTO_TASK_PRIORITY\r
148         #define ipconfigNABTO_TASK_PRIORITY      ( ipconfigUDP_TASK_PRIORITY + 1 )\r
149 #endif\r
150 \r
151 #ifndef ipconfigSUPPORT_SELECT_FUNCTION\r
152         #define ipconfigSUPPORT_SELECT_FUNCTION 0\r
153 #endif\r
154                 \r
155 #ifndef ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM\r
156         #define ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM 0\r
157 #endif\r
158 \r
159 #ifndef ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM\r
160         #define ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM 0\r
161 #endif\r
162 \r
163 #ifndef ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM\r
164         #define ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM 0\r
165 #endif\r
166 \r
167 #ifndef ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM\r
168         #define ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM 0\r
169 #endif\r
170 \r
171 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */\r