]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h
Update version number in readiness for V10.3.0 release. Sync SVN with reviewed releas...
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-TCP / include / IPTraceMacroDefaults.h
index 3e30722ee361be6181a6561e0278cb3766a4dfd3..0af7189dde5963b46a875e88199eb4eeb0a17541 100644 (file)
-/*\r
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.\r
- * Authors include Hein Tibosch and Richard Barry\r
- *\r
- *******************************************************************************\r
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***\r
- ***                                                                         ***\r
- ***                                                                         ***\r
- ***   FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP     ***\r
- ***   demos have a dependency on FreeRTOS+FAT, which is only in the Labs    ***\r
- ***   download):                                                            ***\r
- ***                                                                         ***\r
- ***   FreeRTOS+TCP is functional and has been used in commercial products   ***\r
- ***   for some time.  Be aware however that we are still refining its       ***\r
- ***   design, the source code does not yet quite conform to the strict      ***\r
- ***   coding and style standards mandated by Real Time Engineers ltd., and  ***\r
- ***   the documentation and testing is not necessarily complete.            ***\r
- ***                                                                         ***\r
- ***   PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE    ***\r
- ***   URL: http://www.FreeRTOS.org/contact  Active early adopters may, at   ***\r
- ***   the sole discretion of Real Time Engineers Ltd., be offered versions  ***\r
- ***   under a license other than that described below.                      ***\r
- ***                                                                         ***\r
- ***                                                                         ***\r
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***\r
- *******************************************************************************\r
- *\r
- * FreeRTOS+TCP can be used under two different free open source licenses.  The\r
- * license that applies is dependent on the processor on which FreeRTOS+TCP is\r
- * executed, as follows:\r
- *\r
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special\r
- * License Arrangements heading of the FreeRTOS+TCP license information web\r
- * page, then it can be used under the terms of the FreeRTOS Open Source\r
- * License.  If FreeRTOS+TCP is used on any other processor, then it can be used\r
- * under the terms of the GNU General Public License V2.  Links to the relevant\r
- * licenses follow:\r
- *\r
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license\r
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license\r
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt\r
- *\r
- * FreeRTOS+TCP is distributed in the hope that it will be useful.  You cannot\r
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.\r
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied\r
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR\r
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they\r
- * implied, expressed, or statutory.\r
- *\r
- * 1 tab == 4 spaces!\r
- *\r
- * http://www.FreeRTOS.org\r
- * http://www.FreeRTOS.org/plus\r
- * http://www.FreeRTOS.org/labs\r
- *\r
- */\r
-\r
-/* This file provides default (empty) implementations for any IP trace macros\r
-that are not defined by the user.  See\r
-http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Trace.html */\r
-\r
-#ifndef UDP_TRACE_MACRO_DEFAULTS_H\r
-#define UDP_TRACE_MACRO_DEFAULTS_H\r
-\r
-#ifndef iptraceNETWORK_DOWN\r
-       #define iptraceNETWORK_DOWN()\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_BUFFER_RELEASED\r
-       #define iptraceNETWORK_BUFFER_RELEASED( pxBufferAddress )\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_BUFFER_OBTAINED\r
-       #define iptraceNETWORK_BUFFER_OBTAINED( pxBufferAddress )\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR\r
-       #define iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR( pxBufferAddress )\r
-#endif\r
-\r
-#ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER\r
-       #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER()\r
-#endif\r
-\r
-#ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR\r
-       #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR()\r
-#endif\r
-\r
-#ifndef iptraceCREATING_ARP_REQUEST\r
-       #define iptraceCREATING_ARP_REQUEST( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceARP_TABLE_ENTRY_WILL_EXPIRE\r
-       #define iptraceARP_TABLE_ENTRY_WILL_EXPIRE( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceARP_TABLE_ENTRY_EXPIRED\r
-       #define iptraceARP_TABLE_ENTRY_EXPIRED( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceARP_TABLE_ENTRY_CREATED\r
-       #define iptraceARP_TABLE_ENTRY_CREATED( ulIPAddress, ucMACAddress )\r
-#endif\r
-\r
-#ifndef iptraceSENDING_UDP_PACKET\r
-       #define iptraceSENDING_UDP_PACKET( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptracePACKET_DROPPED_TO_GENERATE_ARP\r
-       #define iptracePACKET_DROPPED_TO_GENERATE_ARP( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceICMP_PACKET_RECEIVED\r
-       #define iptraceICMP_PACKET_RECEIVED()\r
-#endif\r
-\r
-#ifndef iptraceSENDING_PING_REPLY\r
-       #define iptraceSENDING_PING_REPLY( ulIPAddress )\r
-#endif\r
-\r
-#ifndef traceARP_PACKET_RECEIVED\r
-       #define traceARP_PACKET_RECEIVED()\r
-#endif\r
-\r
-#ifndef iptracePROCESSING_RECEIVED_ARP_REPLY\r
-       #define iptracePROCESSING_RECEIVED_ARP_REPLY( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceSENDING_ARP_REPLY\r
-       #define iptraceSENDING_ARP_REPLY( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceFAILED_TO_CREATE_SOCKET\r
-       #define iptraceFAILED_TO_CREATE_SOCKET()\r
-#endif\r
-\r
-#ifndef iptraceFAILED_TO_CREATE_EVENT_GROUP\r
-       #define iptraceFAILED_TO_CREATE_EVENT_GROUP()\r
-#endif\r
-\r
-#ifndef iptraceRECVFROM_DISCARDING_BYTES\r
-       #define iptraceRECVFROM_DISCARDING_BYTES( xNumberOfBytesDiscarded )\r
-#endif\r
-\r
-#ifndef iptraceETHERNET_RX_EVENT_LOST\r
-       #define iptraceETHERNET_RX_EVENT_LOST()\r
-#endif\r
-\r
-#ifndef iptraceSTACK_TX_EVENT_LOST\r
-       #define iptraceSTACK_TX_EVENT_LOST( xEvent )\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_EVENT_RECEIVED\r
-       #define iptraceNETWORK_EVENT_RECEIVED( eEvent )\r
-#endif\r
-\r
-#ifndef iptraceBIND_FAILED\r
-       #define iptraceBIND_FAILED( xSocket, usPort )\r
-#endif\r
-\r
-#ifndef iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS\r
-       #define iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS( ulIPAddress )\r
-#endif\r
-\r
-#ifndef iptraceSENDING_DHCP_DISCOVER\r
-       #define iptraceSENDING_DHCP_DISCOVER()\r
-#endif\r
-\r
-#ifndef iptraceSENDING_DHCP_REQUEST\r
-       #define iptraceSENDING_DHCP_REQUEST()\r
-#endif\r
-\r
-#ifndef iptraceDHCP_SUCCEDEED\r
-       #define iptraceDHCP_SUCCEDEED( address )\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_INTERFACE_TRANSMIT\r
-       #define iptraceNETWORK_INTERFACE_TRANSMIT()\r
-#endif\r
-\r
-#ifndef iptraceNETWORK_INTERFACE_RECEIVE\r
-       #define iptraceNETWORK_INTERFACE_RECEIVE()\r
-#endif\r
-\r
-#ifndef iptraceSENDING_DNS_REQUEST\r
-       #define iptraceSENDING_DNS_REQUEST()\r
-#endif\r
-\r
-#ifndef        iptraceWAITING_FOR_TX_DMA_DESCRIPTOR\r
-       #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR()\r
-#endif\r
-\r
-#ifndef ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS\r
-       #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0\r
-#endif\r
-\r
-#ifndef iptraceFAILED_TO_NOTIFY_SELECT_GROUP\r
-       #define iptraceFAILED_TO_NOTIFY_SELECT_GROUP( xSocket )\r
-#endif\r
-\r
-#ifndef pvPortMallocSocket\r
-       #define pvPortMallocSocket(xSize) pvPortMalloc( ( xSize ) )\r
-#endif\r
-\r
-#ifndef iptraceRECVFROM_TIMEOUT\r
-       #define iptraceRECVFROM_TIMEOUT()\r
-#endif\r
-\r
-#ifndef iptraceRECVFROM_INTERRUPTED\r
-       #define iptraceRECVFROM_INTERRUPTED()\r
-#endif\r
-\r
-#ifndef iptraceNO_BUFFER_FOR_SENDTO\r
-       #define iptraceNO_BUFFER_FOR_SENDTO()\r
-#endif\r
-\r
-#ifndef iptraceSENDTO_SOCKET_NOT_BOUND\r
-       #define iptraceSENDTO_SOCKET_NOT_BOUND()\r
-#endif\r
-\r
-#ifndef iptraceSENDTO_DATA_TOO_LONG\r
-       #define iptraceSENDTO_DATA_TOO_LONG()\r
-#endif\r
-\r
-#endif /* UDP_TRACE_MACRO_DEFAULTS_H */\r
+/*
+ * FreeRTOS+TCP V2.2.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+ * the Software, and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * http://aws.amazon.com/freertos
+ * http://www.FreeRTOS.org
+ */
+
+/* This file provides default (empty) implementations for any IP trace macros
+that are not defined by the user.  See
+http://www.FreeRTOS.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP_IP_Trace.html */
+
+#ifndef UDP_TRACE_MACRO_DEFAULTS_H
+#define UDP_TRACE_MACRO_DEFAULTS_H
+
+#ifndef iptraceNETWORK_DOWN
+       #define iptraceNETWORK_DOWN()
+#endif
+
+#ifndef iptraceNETWORK_BUFFER_RELEASED
+       #define iptraceNETWORK_BUFFER_RELEASED( pxBufferAddress )
+#endif
+
+#ifndef iptraceNETWORK_BUFFER_OBTAINED
+       #define iptraceNETWORK_BUFFER_OBTAINED( pxBufferAddress )
+#endif
+
+#ifndef iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR
+       #define iptraceNETWORK_BUFFER_OBTAINED_FROM_ISR( pxBufferAddress )
+#endif
+
+#ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER
+       #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER()
+#endif
+
+#ifndef iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR
+       #define iptraceFAILED_TO_OBTAIN_NETWORK_BUFFER_FROM_ISR()
+#endif
+
+#ifndef iptraceCREATING_ARP_REQUEST
+       #define iptraceCREATING_ARP_REQUEST( ulIPAddress )
+#endif
+
+#ifndef iptraceARP_TABLE_ENTRY_WILL_EXPIRE
+       #define iptraceARP_TABLE_ENTRY_WILL_EXPIRE( ulIPAddress )
+#endif
+
+#ifndef iptraceARP_TABLE_ENTRY_EXPIRED
+       #define iptraceARP_TABLE_ENTRY_EXPIRED( ulIPAddress )
+#endif
+
+#ifndef iptraceARP_TABLE_ENTRY_CREATED
+       #define iptraceARP_TABLE_ENTRY_CREATED( ulIPAddress, ucMACAddress )
+#endif
+
+#ifndef iptraceSENDING_UDP_PACKET
+       #define iptraceSENDING_UDP_PACKET( ulIPAddress )
+#endif
+
+#ifndef iptracePACKET_DROPPED_TO_GENERATE_ARP
+       #define iptracePACKET_DROPPED_TO_GENERATE_ARP( ulIPAddress )
+#endif
+
+#ifndef iptraceICMP_PACKET_RECEIVED
+       #define iptraceICMP_PACKET_RECEIVED()
+#endif
+
+#ifndef iptraceSENDING_PING_REPLY
+       #define iptraceSENDING_PING_REPLY( ulIPAddress )
+#endif
+
+#ifndef traceARP_PACKET_RECEIVED
+       #define traceARP_PACKET_RECEIVED()
+#endif
+
+#ifndef iptracePROCESSING_RECEIVED_ARP_REPLY
+       #define iptracePROCESSING_RECEIVED_ARP_REPLY( ulIPAddress )
+#endif
+
+#ifndef iptraceSENDING_ARP_REPLY
+       #define iptraceSENDING_ARP_REPLY( ulIPAddress )
+#endif
+
+#ifndef iptraceFAILED_TO_CREATE_SOCKET
+       #define iptraceFAILED_TO_CREATE_SOCKET()
+#endif
+
+#ifndef iptraceFAILED_TO_CREATE_EVENT_GROUP
+       #define iptraceFAILED_TO_CREATE_EVENT_GROUP()
+#endif
+
+#ifndef iptraceRECVFROM_DISCARDING_BYTES
+       #define iptraceRECVFROM_DISCARDING_BYTES( xNumberOfBytesDiscarded )
+#endif
+
+#ifndef iptraceETHERNET_RX_EVENT_LOST
+       #define iptraceETHERNET_RX_EVENT_LOST()
+#endif
+
+#ifndef iptraceSTACK_TX_EVENT_LOST
+       #define iptraceSTACK_TX_EVENT_LOST( xEvent )
+#endif
+
+#ifndef iptraceNETWORK_EVENT_RECEIVED
+       #define iptraceNETWORK_EVENT_RECEIVED( eEvent )
+#endif
+
+#ifndef iptraceBIND_FAILED
+       #define iptraceBIND_FAILED( xSocket, usPort )
+#endif
+
+#ifndef iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS
+       #define iptraceDHCP_REQUESTS_FAILED_USING_DEFAULT_IP_ADDRESS( ulIPAddress )
+#endif
+
+#ifndef iptraceSENDING_DHCP_DISCOVER
+       #define iptraceSENDING_DHCP_DISCOVER()
+#endif
+
+#ifndef iptraceSENDING_DHCP_REQUEST
+       #define iptraceSENDING_DHCP_REQUEST()
+#endif
+
+#ifndef iptraceDHCP_SUCCEDEED
+       #define iptraceDHCP_SUCCEDEED( address )
+#endif
+
+#ifndef iptraceNETWORK_INTERFACE_TRANSMIT
+       #define iptraceNETWORK_INTERFACE_TRANSMIT()
+#endif
+
+#ifndef iptraceNETWORK_INTERFACE_RECEIVE
+       #define iptraceNETWORK_INTERFACE_RECEIVE()
+#endif
+
+#ifndef iptraceSENDING_DNS_REQUEST
+       #define iptraceSENDING_DNS_REQUEST()
+#endif
+
+#ifndef        iptraceWAITING_FOR_TX_DMA_DESCRIPTOR
+       #define iptraceWAITING_FOR_TX_DMA_DESCRIPTOR()
+#endif
+
+#ifndef ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS
+       #define ipconfigINCLUDE_EXAMPLE_FREERTOS_PLUS_TRACE_CALLS 0
+#endif
+
+#ifndef iptraceFAILED_TO_NOTIFY_SELECT_GROUP
+       #define iptraceFAILED_TO_NOTIFY_SELECT_GROUP( xSocket )
+#endif
+
+#ifndef pvPortMallocSocket
+       #define pvPortMallocSocket(xSize) pvPortMalloc( ( xSize ) )
+#endif
+
+#ifndef iptraceRECVFROM_TIMEOUT
+       #define iptraceRECVFROM_TIMEOUT()
+#endif
+
+#ifndef iptraceRECVFROM_INTERRUPTED
+       #define iptraceRECVFROM_INTERRUPTED()
+#endif
+
+#ifndef iptraceNO_BUFFER_FOR_SENDTO
+       #define iptraceNO_BUFFER_FOR_SENDTO()
+#endif
+
+#ifndef iptraceSENDTO_SOCKET_NOT_BOUND
+       #define iptraceSENDTO_SOCKET_NOT_BOUND()
+#endif
+
+#ifndef iptraceSENDTO_DATA_TOO_LONG
+       #define iptraceSENDTO_DATA_TOO_LONG()
+#endif
+
+#endif /* UDP_TRACE_MACRO_DEFAULTS_H */