]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
Update to MIT licensed FreeRTOS V10.0.0 - see https://www.freertos.org/History.txt
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-UDP / include / FreeRTOSIPConfigDefaults.h
1 /*\r
2  * FreeRTOS+UDP V1.0.4\r
3  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
6  * this software and associated documentation files (the "Software"), to deal in\r
7  * the Software without restriction, including without limitation the rights to\r
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
9  * the Software, and to permit persons to whom the Software is furnished to do so,\r
10  * subject to the following conditions:\r
11  *\r
12  * The above copyright notice and this permission notice shall be included in all\r
13  * copies or substantial portions of the Software. If you wish to use our Amazon\r
14  * FreeRTOS name, please do so in a fair use way that does not cause confusion.\r
15  *\r
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
22  *\r
23  * http://www.FreeRTOS.org\r
24  * http://aws.amazon.com/freertos\r
25  *\r
26  * 1 tab == 4 spaces!\r
27  */\r
28 \r
29 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H\r
30 #define FREERTOS_DEFAULT_IP_CONFIG_H\r
31 \r
32 /* This file provides default values for configuration options that are missing\r
33 from the FreeRTOSIPConfig.h configuration header file. */\r
34 \r
35 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK\r
36         #define ipconfigUSE_NETWORK_EVENT_HOOK 0\r
37 #endif\r
38 \r
39 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS\r
40         #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )\r
41 #endif\r
42 \r
43 #ifndef ipconfigARP_CACHE_ENTRIES\r
44         #define ipconfigARP_CACHE_ENTRIES               10\r
45 #endif\r
46 \r
47 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS\r
48         #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )\r
49 #endif\r
50 \r
51 #ifndef ipconfigMAX_ARP_AGE\r
52         #define ipconfigMAX_ARP_AGE                     150\r
53 #endif\r
54 \r
55 #ifndef ipconfigINCLUDE_FULL_INET_ADDR\r
56         #define ipconfigINCLUDE_FULL_INET_ADDR  1\r
57 #endif\r
58 \r
59 #ifndef ipconfigNUM_NETWORK_BUFFERS\r
60         #define ipconfigNUM_NETWORK_BUFFERS             45\r
61 #endif\r
62 \r
63 #ifndef ipconfigEVENT_QUEUE_LENGTH\r
64         #define ipconfigEVENT_QUEUE_LENGTH              ( ipconfigNUM_NETWORK_BUFFERS + 5 )\r
65 #endif\r
66 \r
67 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND\r
68         #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1\r
69 #endif\r
70 \r
71 #ifndef updconfigIP_TIME_TO_LIVE\r
72         #define updconfigIP_TIME_TO_LIVE                128\r
73 #endif\r
74 \r
75 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS\r
76         #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0\r
77 #endif\r
78 \r
79 #ifndef ipconfigNETWORK_MTU\r
80         #define ipconfigNETWORK_MTU 1500\r
81 #endif\r
82 \r
83 #ifndef ipconfigUSE_DHCP\r
84         #define ipconfigUSE_DHCP        1\r
85 #endif\r
86 \r
87 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD\r
88         #ifdef _WINDOWS_\r
89                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 999 / portTICK_RATE_MS )\r
90         #else\r
91                 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD              ( 30000 / portTICK_RATE_MS )\r
92         #endif /* _WINDOWS_ */\r
93 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */\r
94 \r
95 #ifndef ipconfigUSE_DNS\r
96         #define ipconfigUSE_DNS         1\r
97 #endif\r
98 \r
99 #ifndef ipconfigREPLY_TO_INCOMING_PINGS\r
100         #define ipconfigREPLY_TO_INCOMING_PINGS                         1\r
101 #endif\r
102 \r
103 #ifndef ipconfigSUPPORT_OUTGOING_PINGS\r
104         #define ipconfigSUPPORT_OUTGOING_PINGS                          0\r
105 #endif\r
106 \r
107 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS\r
108         #define updconfigLOOPBACK_ETHERNET_PACKETS      0\r
109 #endif\r
110 \r
111 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES\r
112         #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1\r
113 #endif\r
114 \r
115 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES\r
116         #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES     1\r
117 #endif\r
118 \r
119 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
120         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0\r
121 #else\r
122         #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS\r
123 #endif\r
124 \r
125 #ifndef ipconfigFREERTOS_PLUS_NABTO\r
126         #define ipconfigFREERTOS_PLUS_NABTO 0\r
127 #endif\r
128 \r
129 #ifndef ipconfigNABTO_TASK_STACK_SIZE\r
130         #define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )\r
131 #endif\r
132 \r
133 #ifndef ipconfigNABTO_TASK_PRIORITY\r
134         #define ipconfigNABTO_TASK_PRIORITY      ( ipconfigUDP_TASK_PRIORITY + 1 )\r
135 #endif\r
136 \r
137 #ifndef ipconfigSUPPORT_SELECT_FUNCTION\r
138         #define ipconfigSUPPORT_SELECT_FUNCTION 0\r
139 #endif\r
140                 \r
141 #ifndef ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM\r
142         #define ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM 0\r
143 #endif\r
144 \r
145 #ifndef ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM\r
146         #define ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM 0\r
147 #endif\r
148 \r
149 #ifndef ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM\r
150         #define ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM 0\r
151 #endif\r
152 \r
153 #ifndef ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM\r
154         #define ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM 0\r
155 #endif\r
156 \r
157 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */\r