2 * FreeRTOS+UDP V1.0.4
\r
3 * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\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
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
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
23 * http://www.FreeRTOS.org
\r
24 * http://aws.amazon.com/freertos
\r
26 * 1 tab == 4 spaces!
\r
29 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H
\r
30 #define FREERTOS_DEFAULT_IP_CONFIG_H
\r
32 /* This file provides default values for configuration options that are missing
\r
33 from the FreeRTOSIPConfig.h configuration header file. */
\r
35 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK
\r
36 #define ipconfigUSE_NETWORK_EVENT_HOOK 0
\r
39 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS
\r
40 #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )
\r
43 #ifndef ipconfigARP_CACHE_ENTRIES
\r
44 #define ipconfigARP_CACHE_ENTRIES 10
\r
47 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS
\r
48 #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
\r
51 #ifndef ipconfigMAX_ARP_AGE
\r
52 #define ipconfigMAX_ARP_AGE 150
\r
55 #ifndef ipconfigINCLUDE_FULL_INET_ADDR
\r
56 #define ipconfigINCLUDE_FULL_INET_ADDR 1
\r
59 #ifndef ipconfigNUM_NETWORK_BUFFERS
\r
60 #define ipconfigNUM_NETWORK_BUFFERS 45
\r
63 #ifndef ipconfigEVENT_QUEUE_LENGTH
\r
64 #define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFERS + 5 )
\r
67 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND
\r
68 #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1
\r
71 #ifndef updconfigIP_TIME_TO_LIVE
\r
72 #define updconfigIP_TIME_TO_LIVE 128
\r
75 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS
\r
76 #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0
\r
79 #ifndef ipconfigNETWORK_MTU
\r
80 #define ipconfigNETWORK_MTU 1500
\r
83 #ifndef ipconfigUSE_DHCP
\r
84 #define ipconfigUSE_DHCP 1
\r
87 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD
\r
89 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 999 / portTICK_RATE_MS )
\r
91 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 30000 / portTICK_RATE_MS )
\r
92 #endif /* _WINDOWS_ */
\r
93 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */
\r
95 #ifndef ipconfigUSE_DNS
\r
96 #define ipconfigUSE_DNS 1
\r
99 #ifndef ipconfigREPLY_TO_INCOMING_PINGS
\r
100 #define ipconfigREPLY_TO_INCOMING_PINGS 1
\r
103 #ifndef ipconfigSUPPORT_OUTGOING_PINGS
\r
104 #define ipconfigSUPPORT_OUTGOING_PINGS 0
\r
107 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS
\r
108 #define updconfigLOOPBACK_ETHERNET_PACKETS 0
\r
111 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES
\r
112 #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1
\r
115 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES
\r
116 #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1
\r
119 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS
\r
120 #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0
\r
122 #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS
\r
125 #ifndef ipconfigFREERTOS_PLUS_NABTO
\r
126 #define ipconfigFREERTOS_PLUS_NABTO 0
\r
129 #ifndef ipconfigNABTO_TASK_STACK_SIZE
\r
130 #define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )
\r
133 #ifndef ipconfigNABTO_TASK_PRIORITY
\r
134 #define ipconfigNABTO_TASK_PRIORITY ( ipconfigUDP_TASK_PRIORITY + 1 )
\r
137 #ifndef ipconfigSUPPORT_SELECT_FUNCTION
\r
138 #define ipconfigSUPPORT_SELECT_FUNCTION 0
\r
141 #ifndef ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM
\r
142 #define ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM 0
\r
145 #ifndef ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM
\r
146 #define ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM 0
\r
149 #ifndef ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM
\r
150 #define ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM 0
\r
153 #ifndef ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM
\r
154 #define ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM 0
\r
157 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */
\r