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.
\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
17 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
18 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
19 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
20 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
22 * http://www.FreeRTOS.org
\r
23 * http://aws.amazon.com/freertos
\r
25 * 1 tab == 4 spaces!
\r
28 #ifndef FREERTOS_DEFAULT_IP_CONFIG_H
\r
29 #define FREERTOS_DEFAULT_IP_CONFIG_H
\r
31 /* This file provides default values for configuration options that are missing
\r
32 from the FreeRTOSIPConfig.h configuration header file. */
\r
34 #ifndef ipconfigUSE_NETWORK_EVENT_HOOK
\r
35 #define ipconfigUSE_NETWORK_EVENT_HOOK 0
\r
38 #ifndef ipconfigMAX_SEND_BLOCK_TIME_TICKS
\r
39 #define ipconfigMAX_SEND_BLOCK_TIME_TICKS ( 20 / portTICK_RATE_MS )
\r
42 #ifndef ipconfigARP_CACHE_ENTRIES
\r
43 #define ipconfigARP_CACHE_ENTRIES 10
\r
46 #ifndef ipconfigMAX_ARP_RETRANSMISSIONS
\r
47 #define ipconfigMAX_ARP_RETRANSMISSIONS ( 5 )
\r
50 #ifndef ipconfigMAX_ARP_AGE
\r
51 #define ipconfigMAX_ARP_AGE 150
\r
54 #ifndef ipconfigINCLUDE_FULL_INET_ADDR
\r
55 #define ipconfigINCLUDE_FULL_INET_ADDR 1
\r
58 #ifndef ipconfigNUM_NETWORK_BUFFERS
\r
59 #define ipconfigNUM_NETWORK_BUFFERS 45
\r
62 #ifndef ipconfigEVENT_QUEUE_LENGTH
\r
63 #define ipconfigEVENT_QUEUE_LENGTH ( ipconfigNUM_NETWORK_BUFFERS + 5 )
\r
66 #ifndef ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND
\r
67 #define ipconfigALLOW_SOCKET_SEND_WITHOUT_BIND 1
\r
70 #ifndef updconfigIP_TIME_TO_LIVE
\r
71 #define updconfigIP_TIME_TO_LIVE 128
\r
74 #ifndef ipconfigCAN_FRAGMENT_OUTGOING_PACKETS
\r
75 #define ipconfigCAN_FRAGMENT_OUTGOING_PACKETS 0
\r
78 #ifndef ipconfigNETWORK_MTU
\r
79 #define ipconfigNETWORK_MTU 1500
\r
82 #ifndef ipconfigUSE_DHCP
\r
83 #define ipconfigUSE_DHCP 1
\r
86 #ifndef ipconfigMAXIMUM_DISCOVER_TX_PERIOD
\r
88 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 999 / portTICK_RATE_MS )
\r
90 #define ipconfigMAXIMUM_DISCOVER_TX_PERIOD ( 30000 / portTICK_RATE_MS )
\r
91 #endif /* _WINDOWS_ */
\r
92 #endif /* ipconfigMAXIMUM_DISCOVER_TX_PERIOD */
\r
94 #ifndef ipconfigUSE_DNS
\r
95 #define ipconfigUSE_DNS 1
\r
98 #ifndef ipconfigREPLY_TO_INCOMING_PINGS
\r
99 #define ipconfigREPLY_TO_INCOMING_PINGS 1
\r
102 #ifndef ipconfigSUPPORT_OUTGOING_PINGS
\r
103 #define ipconfigSUPPORT_OUTGOING_PINGS 0
\r
106 #ifndef updconfigLOOPBACK_ETHERNET_PACKETS
\r
107 #define updconfigLOOPBACK_ETHERNET_PACKETS 0
\r
110 #ifndef ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES
\r
111 #define ipconfigFILTER_OUT_NON_ETHERNET_II_FRAMES 1
\r
114 #ifndef ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES
\r
115 #define ipconfigETHERNET_DRIVER_FILTERS_FRAME_TYPES 1
\r
118 #ifndef configINCLUDE_TRACE_RELATED_CLI_COMMANDS
\r
119 #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0
\r
121 #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS configINCLUDE_TRACE_RELATED_CLI_COMMANDS
\r
124 #ifndef ipconfigFREERTOS_PLUS_NABTO
\r
125 #define ipconfigFREERTOS_PLUS_NABTO 0
\r
128 #ifndef ipconfigNABTO_TASK_STACK_SIZE
\r
129 #define ipconfigNABTO_TASK_STACK_SIZE ( configMINIMAL_STACK_SIZE * 2 )
\r
132 #ifndef ipconfigNABTO_TASK_PRIORITY
\r
133 #define ipconfigNABTO_TASK_PRIORITY ( ipconfigUDP_TASK_PRIORITY + 1 )
\r
136 #ifndef ipconfigSUPPORT_SELECT_FUNCTION
\r
137 #define ipconfigSUPPORT_SELECT_FUNCTION 0
\r
140 #ifndef ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM
\r
141 #define ipconfigETHERNET_DRIVER_ADDS_UDP_CHECKSUM 0
\r
144 #ifndef ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM
\r
145 #define ipconfigETHERNET_DRIVER_ADDS_IP_CHECKSUM 0
\r
148 #ifndef ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM
\r
149 #define ipconfigETHERNET_DRIVER_CHECKS_IP_CHECKSUM 0
\r
152 #ifndef ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM
\r
153 #define ipconfigETHERNET_DRIVER_CHECKS_UDP_CHECKSUM 0
\r
156 #endif /* FREERTOS_DEFAULT_IP_CONFIG_H */
\r