summaryrefslogtreecommitdiff
path: root/FreeRTOS-Plus/Source
diff options
context:
space:
mode:
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2017-11-29 16:53:26 +0000
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2017-11-29 16:53:26 +0000
commit39dac466e355b59381000bbbf7572f8f8d7c8003 (patch)
treed02094357653b074c8d3d3101aae56522a79b5c2 /FreeRTOS-Plus/Source
parente089001f514f4f1a5cf1ce16368c566e16ba3630 (diff)
downloadfreertos-39dac466e355b59381000bbbf7572f8f8d7c8003.tar.gz
Update to MIT licensed FreeRTOS V10.0.0 - see https://www.freertos.org/History.txt
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2519 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS-Plus/Source')
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/ReadMe.url5
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver.h104
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver_ram.h72
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/fat_sl.h455
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_fat_sl_template.h71
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_mdriver_ram_template.h56
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.c1221
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.h108
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.c218
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.h63
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.c644
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.h62
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.c597
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.c1541
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.h65
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.c322
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.h75
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.c542
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.h64
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.c980
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.h115
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.c3069
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.h68
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/media-drv/ram/ramdrv_f.c255
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_rtc.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_string.h62
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.c79
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.h75
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/rtc/psp_rtc.c82
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/History.txt9
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_fat_sl.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver_ram.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_fat_sl.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_rtc.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_string.h48
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-Nabto/readme.txt6
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h78
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h78
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h72
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_2.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_end.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_start.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_end.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_start.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_end.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_start.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_end.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_start.h73
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ATSAM4E/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC17xx/NetworkInterface.c61
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC18xx/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c61
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32F7xx/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32Fxx/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/WinPCap/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/x_emacpsif_dma.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/NetworkInterface.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/Common/FreeRTOS_TCP_server.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_commands.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_server.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_commands.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_server.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/NTP/NTPDemo.c67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_FTP_commands.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_HTTP_commands.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_TCP_server.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_server_private.h67
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DHCP.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DNS.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_IP_Private.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_Sockets.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_UDP_IP.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/IPTraceMacroDefaults.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkBufferManagement.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkInterface.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_1.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_2.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_end.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_start.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_end.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_start.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_end.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_start.h58
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC17xx/NetworkInterface.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/NetworkInterface.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.h52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c50
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SH2A/NetworkInterface.c52
-rw-r--r--FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/WinPCap/NetworkInterface.c52
122 files changed, 1681 insertions, 15143 deletions
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
index 58e795c19..180370e26 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+CLI V1.0.4 (C) 2014 Real Time Engineers ltd. All rights reserved.
+ * FreeRTOS+CLI V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+CLI distribution. The FreeRTOS+CLI license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+CLI uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+CLI is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+CLI is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a low cost commercial
- * license before incorporating FreeRTOS+CLI into proprietary software for
- * distribution in any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/cli and do not require any source files to be
- * changed.
- *
- * FreeRTOS+CLI is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+CLI unless you agree that you use the software 'as is'.
- * FreeRTOS+CLI is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h
index 7ac666d5e..d3280fefe 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-CLI/FreeRTOS_CLI.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+CLI V1.0.4 (C) 2014 Real Time Engineers ltd. All rights reserved.
+ * FreeRTOS+CLI V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+CLI distribution. The FreeRTOS+CLI license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+CLI uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+CLI is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+CLI is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a low cost commercial
- * license before incorporating FreeRTOS+CLI into proprietary software for
- * distribution in any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/cli and do not require any source files to be
- * changed.
- *
- * FreeRTOS+CLI is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+CLI unless you agree that you use the software 'as is'.
- * FreeRTOS+CLI is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef COMMAND_INTERPRETER_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/ReadMe.url b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/ReadMe.url
deleted file mode 100644
index c0924c38f..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/ReadMe.url
+++ /dev/null
@@ -1,5 +0,0 @@
-[InternetShortcut]
-URL=http://www.freertos.org/fat
-IDList=
-[{000214A0-0000-0000-C000-000000000046}]
-Prop3=19,2
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver.h
deleted file mode 100644
index 59940a33b..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _API_MDRIVER_H_
-#define _API_MDRIVER_H_
-
-#include "../version/ver_mdriver.h"
-#if VER_MDRIVER_MAJOR != 1 || VER_MDRIVER_MINOR != 0
- #error Incompatible MDRIVER version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-typedef struct
-{
- unsigned short number_of_cylinders;
- unsigned short sector_per_track;
- unsigned short number_of_heads;
- unsigned long number_of_sectors;
- unsigned char media_descriptor;
-
- unsigned short bytes_per_sector;
-} F_PHY;
-
-/* media descriptor to be set in getphy function */
-#define F_MEDIADESC_REMOVABLE 0xf0
-#define F_MEDIADESC_FIX 0xf8
-
-/* return bitpattern for driver getphy function */
-#define F_ST_MISSING 0x00000001
-#define F_ST_CHANGED 0x00000002
-#define F_ST_WRPROTECT 0x00000004
-
-/* Driver definitions */
-typedef struct F_DRIVER F_DRIVER;
-
-typedef int ( *F_WRITESECTOR )( F_DRIVER * driver, void * data, unsigned long sector );
-typedef int ( *F_READSECTOR )( F_DRIVER * driver, void * data, unsigned long sector );
-typedef int ( *F_GETPHY )( F_DRIVER * driver, F_PHY * phy );
-typedef long ( *F_GETSTATUS )( F_DRIVER * driver );
-typedef void ( *F_RELEASE )( F_DRIVER * driver );
-
-typedef struct F_DRIVER
-{
- unsigned long user_data; /* user defined data */
- void * user_ptr; /* user define pointer */
-
- /* driver functions */
- F_WRITESECTOR writesector;
- F_READSECTOR readsector;
- F_GETPHY getphy;
- F_GETSTATUS getstatus;
- F_RELEASE release;
-} _F_DRIVER;
-
-typedef F_DRIVER *( *F_DRIVERINIT )( unsigned long driver_param );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _API_MDRIVER_H_ */
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver_ram.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver_ram.h
deleted file mode 100644
index 750162dad..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/api_mdriver_ram.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _API_MDRIVER_RAM_H_
-#define _API_MDRIVER_RAM_H_
-
-#include "api_mdriver.h"
-
-#include "../version/ver_mdriver_ram.h"
-#if VER_MDRIVER_RAM_MAJOR != 1 || VER_MDRIVER_RAM_MINOR != 2
- #error Incompatible MDRIVER_RAM version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define F_RAM_DRIVE0 0
-
-enum
-{
- MDRIVER_RAM_NO_ERROR
- , MDRIVER_RAM_ERR_SECTOR = 101
- , MDRIVER_RAM_ERR_NOTAVAILABLE
-};
-
-F_DRIVER * ram_initfunc ( unsigned long driver_param );
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* _API_MDRIVER_RAM_H_ */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/fat_sl.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/fat_sl.h
deleted file mode 100644
index 974a8bb15..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/api/fat_sl.h
+++ /dev/null
@@ -1,455 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _API_FAT_SL_H_
-#define _API_FAT_SL_H_
-
-#include "config_fat_sl.h"
-
-#include "../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define F_MAXNAME 8 /* 8 byte name */
-#define F_MAXEXT 3 /* 3 byte extension */
-
-typedef struct
-{
- char path[F_MAXPATH]; /* /directory1/dir2/ */
- char filename[F_MAXNAME]; /* filename */
- char fileext[F_MAXEXT]; /* extension */
-} F_NAME;
-
-typedef struct
-{
- unsigned long cluster;
- unsigned long sector;
- unsigned long sectorend;
- unsigned long pos;
-} F_POS;
-
-typedef struct
-{
- char filename[F_MAXPATH]; /*file name+ext*/
- char name[F_MAXNAME]; /*file name*/
- char ext[F_MAXEXT]; /*file extension*/
- unsigned char attr; /*attribute of the file*/
-
- unsigned short ctime; /*creation time*/
- unsigned short cdate; /*creation date*/
- unsigned long cluster;
-
- long filesize; /*length of file*/
-
- F_NAME findfsname; /*find properties*/
- F_POS pos;
-} F_FIND;
-
-#define F_ATTR_ARC 0x20
-#define F_ATTR_DIR 0x10
-#define F_ATTR_VOLUME 0x08
-#define F_ATTR_SYSTEM 0x04
-#define F_ATTR_HIDDEN 0x02
-#define F_ATTR_READONLY 0x01
-
-#define F_CLUSTER_FREE ( (unsigned long)0x00000000 )
-#define F_CLUSTER_RESERVED ( (unsigned long)0x0ffffff0 )
-#define F_CLUSTER_BAD ( (unsigned long)0x0ffffff7 )
-#define F_CLUSTER_LAST ( (unsigned long)0x0ffffff8 )
-#define F_CLUSTER_LASTF32R ( (unsigned long)0x0fffffff )
-
-#define F_ST_MISSING 0x00000001
-#define F_ST_CHANGED 0x00000002
-#define F_ST_WRPROTECT 0x00000004
-
-typedef struct
-{
- unsigned long abspos;
- unsigned long filesize;
- unsigned long startcluster;
- unsigned long relpos;
- unsigned char modified;
- unsigned char mode;
- unsigned char _tdata[F_SECTOR_SIZE];
- F_POS pos;
- F_POS dirpos;
-#if F_FILE_CHANGED_EVENT
- char filename[F_MAXPATH]; /* filename with full path */
-#endif
-} F_FILE;
-
-enum
-{
- F_UNKNOWN_MEDIA
- , F_FAT12_MEDIA
- , F_FAT16_MEDIA
- , F_FAT32_MEDIA
-};
-
-enum
-{
-/* 0 */
- F_NO_ERROR,
-
-/* 1 */ F_ERR_RESERVED_1,
-
-/* 2 */ F_ERR_NOTFORMATTED,
-
-/* 3 */ F_ERR_INVALIDDIR,
-
-/* 4 */ F_ERR_INVALIDNAME,
-
-/* 5 */ F_ERR_NOTFOUND,
-
-/* 6 */ F_ERR_DUPLICATED,
-
-/* 7 */ F_ERR_NOMOREENTRY,
-
-/* 8 */ F_ERR_NOTOPEN,
-
-/* 9 */ F_ERR_EOF,
-
-/* 10 */ F_ERR_RESERVED_2,
-
-/* 11 */ F_ERR_NOTUSEABLE,
-
-/* 12 */ F_ERR_LOCKED,
-
-/* 13 */ F_ERR_ACCESSDENIED,
-
-/* 14 */ F_ERR_NOTEMPTY,
-
-/* 15 */ F_ERR_INITFUNC,
-
-/* 16 */ F_ERR_CARDREMOVED,
-
-/* 17 */ F_ERR_ONDRIVE,
-
-/* 18 */ F_ERR_INVALIDSECTOR,
-
-/* 19 */ F_ERR_READ,
-
-/* 20 */ F_ERR_WRITE,
-
-/* 21 */ F_ERR_INVALIDMEDIA,
-
-/* 22 */ F_ERR_BUSY,
-
-/* 23 */ F_ERR_WRITEPROTECT,
-
-/* 24 */ F_ERR_INVFATTYPE,
-
-/* 25 */ F_ERR_MEDIATOOSMALL,
-
-/* 26 */ F_ERR_MEDIATOOLARGE,
-
-/* 27 */ F_ERR_NOTSUPPSECTORSIZE
-
-/* 28 */, F_ERR_ALLOCATION
-
-#if F_FS_THREAD_AWARE == 1
-/* 29 */, F_ERR_OS = 29
-#endif /* F_FS_THREAD_AWARE */
-};
-
-typedef struct
-{
- unsigned long total;
- unsigned long free;
- unsigned long used;
- unsigned long bad;
-
- unsigned long total_high;
- unsigned long free_high;
- unsigned long used_high;
- unsigned long bad_high;
-} F_SPACE;
-
-enum
-{
- F_SEEK_SET /*Beginning of file*/
- , F_SEEK_CUR /*Current position of file pointer*/
- , F_SEEK_END /*End of file*/
-};
-
-
-/****************************************************************************
- *
- * for file changed events
- *
- ***************************************************************************/
-
-#if F_FILE_CHANGED_EVENT
-
-typedef struct
-{
- unsigned char action;
- unsigned char flags;
- unsigned char attr;
- unsigned short ctime;
- unsigned short cdate;
- unsigned long filesize;
- char filename[F_MAXPATH];
-} ST_FILE_CHANGED;
-
-typedef void ( *F_FILE_CHANGED_EVENTFUNC )( ST_FILE_CHANGED * fc );
-
-extern F_FILE_CHANGED_EVENTFUNC f_filechangedevent;
-
- #define f_setfilechangedevent( filechangeevent ) f_filechangedevent = filechangeevent
-
-/* flags */
-
- #define FFLAGS_NONE 0x00000000
-
- #define FFLAGS_FILE_NAME 0x00000001
- #define FFLAGS_DIR_NAME 0x00000002
- #define FFLAGS_NAME 0x00000003
- #define FFLAGS_ATTRIBUTES 0x00000004
- #define FFLAGS_SIZE 0x00000008
- #define FFLAGS_LAST_WRITE 0x00000010
-
-/* actions */
-
- #define FACTION_ADDED 0x00000001
- #define FACTION_REMOVED 0x00000002
- #define FACTION_MODIFIED 0x00000003
- #define FACTION_RENAMED_OLD_NAME 0x00000004
- #define FACTION_RENAMED_NEW_NAME 0x00000005
-
-#endif /* if F_FILE_CHANGED_EVENT */
-
-unsigned char fs_init ( void );
-unsigned char fs_delete ( void );
-
-#define f_initvolume fn_initvolume
-#define f_delvolume fn_delvolume
-
-unsigned char fn_initvolume ( F_DRIVERINIT initfunc );
-unsigned char fn_delvolume ( void );
-
-unsigned char fn_getfreespace ( F_SPACE * pspace );
-
-unsigned char fn_chdir ( const char * dirname );
-unsigned char fn_mkdir ( const char * dirname );
-unsigned char fn_rmdir ( const char * dirname );
-
-unsigned char fn_findfirst ( const char * filename, F_FIND * find );
-unsigned char fn_findnext ( F_FIND * find );
-
-long fn_filelength ( const char * filename );
-
-unsigned char fn_close ( F_FILE * filehandle );
-F_FILE * fn_open ( const char * filename, const char * mode );
-
-long fn_read ( void * buf, long size, long _size_t, F_FILE * filehandle );
-
-long fn_write ( const void * buf, long size, long _size_t, F_FILE * filehandle );
-
-unsigned char fn_seek ( F_FILE * filehandle, long offset, unsigned char whence );
-
-long fn_tell ( F_FILE * filehandle );
-int fn_getc ( F_FILE * filehandle );
-int fn_putc ( int ch, F_FILE * filehandle );
-unsigned char fn_rewind ( F_FILE * filehandle );
-unsigned char fn_eof ( F_FILE * filehandle );
-
-unsigned char fn_delete ( const char * filename );
-
-unsigned char fn_seteof ( F_FILE * );
-
-F_FILE * fn_truncate ( const char *, long );
-
-unsigned char fn_getcwd ( char * buffer, unsigned char maxlen, char root );
-
-unsigned char fn_hardformat ( unsigned char fattype );
-
-unsigned char fn_getserial ( unsigned long * );
-
-
-#if F_FS_THREAD_AWARE == 1
-
-#include "FreeRTOS.h"
-#include "semphr.h"
-
-unsigned char fr_hardformat ( unsigned char fattype );
-#define f_hardformat( fattype ) fr_hardformat( fattype )
-#define f_format( fattype ) fr_hardformat( fattype )
-
-unsigned char fr_getcwd ( char * buffer, unsigned char maxlen, char root );
-#define f_getcwd( buffer, maxlen ) fr_getcwd( buffer, maxlen, 1 )
-
-unsigned char fr_getfreespace ( F_SPACE * pspace );
-#define f_getfreespace fr_getfreespace
-
-
-unsigned char fr_chdir ( const char * dirname );
-#define f_chdir( dirname ) fr_chdir( dirname )
-unsigned char fr_mkdir ( const char * dirname );
-#define f_mkdir( dirname ) fr_mkdir( dirname )
-unsigned char fr_rmdir ( const char * dirname );
-#define f_rmdir( dirname ) fr_rmdir( dirname )
-
-unsigned char fr_findfirst ( const char * filename, F_FIND * find );
-unsigned char fr_findnext ( F_FIND * find );
-#define f_findfirst( filename, find ) fr_findfirst( filename, find )
-#define f_findnext( find ) fr_findnext( find )
-
-long fr_filelength ( const char * filename );
-#define f_filelength( filename ) fr_filelength( filename )
-
-unsigned char fr_close ( F_FILE * filehandle );
-F_FILE * fr_open ( const char * filename, const char * mode );
-
-long fr_read ( void * buf, long size, long _size_t, F_FILE * filehandle );
-
-unsigned char fr_getserial ( unsigned long * );
-#define f_getserial( serial ) fr_getserial( serial )
-
-unsigned char fr_flush ( F_FILE * f );
-#define f_flush( filehandle ) fr_flush( filehandle )
-
-long fr_write ( const void * buf, long size, long _size_t, F_FILE * filehandle );
-#define f_write( buf, size, _size_t, filehandle ) fr_write( buf, size, _size_t, filehandle )
-
-unsigned char fr_seek ( F_FILE * filehandle, long offset, unsigned char whence );
-#define f_seek( filehandle, offset, whence ) fr_seek( filehandle, offset, whence )
-
-long fr_tell ( F_FILE * filehandle );
-#define f_tell( filehandle ) fr_tell( filehandle )
-int fr_getc ( F_FILE * filehandle );
-#define f_getc( filehandle ) fr_getc( filehandle )
-int fr_putc ( int ch, F_FILE * filehandle );
-#define f_putc( ch, filehandle ) fr_putc( ch, filehandle )
-unsigned char fr_rewind ( F_FILE * filehandle );
-#define f_rewind( filehandle ) fr_rewind( filehandle )
-unsigned char fr_eof ( F_FILE * filehandle );
-#define f_eof( filehandle ) fr_eof( filehandle )
-
-unsigned char fr_delete ( const char * filename );
-#define f_delete( filename ) fr_delete( filename )
-
-unsigned char fr_seteof ( F_FILE * );
-#define f_seteof( file ) fr_seteof( file )
-
-F_FILE * fr_truncate ( const char *, long );
-#define f_truncate( filename, filesize ) fr_truncate( filename, filesize )
-
-#define f_close( filehandle ) fr_close( filehandle )
-#define f_open( filename, mode ) fr_open( filename, mode )
-#define f_read( buf, size, _size_t, filehandle ) fr_read( buf, size, _size_t, filehandle )
-
-#else /* F_FS_THREAD_AWARE */
-
-#define f_hardformat( fattype ) fn_hardformat( fattype )
-#define f_format( fattype ) fn_hardformat( fattype )
-
-#define f_getcwd( buffer, maxlen ) fn_getcwd( buffer, maxlen, 1 )
-
-unsigned char fn_getfreespace ( F_SPACE * pspace );
-#define f_getfreespace fn_getfreespace
-
-
-unsigned char fn_chdir ( const char * dirname );
-#define f_chdir( dirname ) fn_chdir( dirname )
-unsigned char fn_mkdir ( const char * dirname );
-#define f_mkdir( dirname ) fn_mkdir( dirname )
-unsigned char fn_rmdir ( const char * dirname );
-#define f_rmdir( dirname ) fn_rmdir( dirname )
-
-unsigned char fn_findfirst ( const char * filename, F_FIND * find );
-unsigned char fn_findnext ( F_FIND * find );
-#define f_findfirst( filename, find ) fn_findfirst( filename, find )
-#define f_findnext( find ) fn_findnext( find )
-
-#define f_filelength( filename ) fn_filelength( filename )
-
-#define f_getserial( serial ) fn_getserial( serial )
-
-unsigned char fn_flush ( F_FILE * f );
-#define f_flush( filehandle ) fn_flush( filehandle )
-
-#define f_write( buf, size, _size_t, filehandle ) fn_write( buf, size, _size_t, filehandle )
-
-#define f_seek( filehandle, offset, whence ) fn_seek( filehandle, offset, whence )
-
-long fn_tell ( F_FILE * filehandle );
-#define f_tell( filehandle ) fn_tell( filehandle )
-int fn_getc ( F_FILE * filehandle );
-#define f_getc( filehandle ) fn_getc( filehandle )
-int fn_putc ( int ch, F_FILE * filehandle );
-#define f_putc( ch, filehandle ) fn_putc( ch, filehandle )
-unsigned char fn_rewind ( F_FILE * filehandle );
-#define f_rewind( filehandle ) fn_rewind( filehandle )
-unsigned char fn_eof ( F_FILE * filehandle );
-#define f_eof( filehandle ) fn_eof( filehandle )
-
-unsigned char fn_delete ( const char * filename );
-#define f_delete( filename ) fn_delete( filename )
-
-unsigned char fn_seteof ( F_FILE * );
-#define f_seteof( file ) fn_seteof( file )
-
-F_FILE * fn_truncate ( const char *, long );
-#define f_truncate( filename, filesize ) fn_truncate( filename, filesize )
-
-#define f_close( filehandle ) fn_close( filehandle )
-#define f_open( filename, mode ) fn_open( filename, mode )
-#define f_read( buf, size, _size_t, filehandle ) fn_read( buf, size, _size_t, filehandle )
-
-#endif /* F_FS_THREAD_AWARE */
-
-
-/****************************************************************************
- *
- * end of fat_sl.h
- *
- ***************************************************************************/
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*_API_FAT_SL_H_*/
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_fat_sl_template.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_fat_sl_template.h
deleted file mode 100644
index 37b34395e..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_fat_sl_template.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _CONFIG_FAT_SL_H
-#define _CONFIG_FAT_SL_H
-
-#include "../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#include "../api/api_mdriver.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/**************************************************************************
-**
-** FAT SL user settings
-**
-**************************************************************************/
-#define F_SECTOR_SIZE 512u /* Disk sector size. */
-#define F_FS_THREAD_AWARE 1 /* Set to one if the file system will be access from more than one task. */
-#define F_MAXPATH 64 /* Maximum length a file name (including its full path) can be. */
-#define F_MAX_LOCK_WAIT_TICKS 20 /* The maximum number of RTOS ticks to wait when attempting to obtain a lock on the file system when F_FS_THREAD_AWARE is set to 1. */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* _CONFIG_FAT_SL_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_mdriver_ram_template.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_mdriver_ram_template.h
deleted file mode 100644
index 7a3a4d362..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/config/config_mdriver_ram_template.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _CONFIG_MDRIVER_RAM_H_
-#define _CONFIG_MDRIVER_RAM_H_
-
-#include "../version/ver_mdriver_ram.h"
-#if VER_MDRIVER_RAM_MAJOR != 1 || VER_MDRIVER_RAM_MINOR != 2
- #error Incompatible MDRIVER_RAM version number!
-#endif
-
-#define MDRIVER_RAM_SECTOR_SIZE 512 /* Sector size */
-
-#define MDRIVER_RAM_VOLUME0_SIZE (128 * 1024) /* defintion for size of ramdrive0 */
-
-#define MDRIVER_MEM_LONG_ACCESS 1 /* set this value to 1 if 32bit access available */
-
-#endif /* ifndef _CONFIG_MDRIVER_RAM_H_ */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.c
deleted file mode 100644
index 92fd0d961..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.c
+++ /dev/null
@@ -1,1221 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-#include "../../psp/include/psp_string.h"
-
-#include "dir.h"
-#include "util.h"
-#include "volume.h"
-#include "drv.h"
-#include "fat.h"
-#include "file.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-
-/****************************************************************************
- *
- * _f_findfilewc
- *
- * internal function to finding file in directory entry with or without
- * wildcard
- *
- * INPUTS
- *
- * name - filename
- * ext - fileextension
- * pos - where to start searching, and contains current position
- * pde - store back the directory entry pointer
- * wc - wildcard checking?
- *
- * RETURNS
- *
- * 0 - if file was not found
- * 1 - if file was found
- *
- ***************************************************************************/
-unsigned char _f_findfilewc ( char * name, char * ext, F_POS * pos, F_DIRENTRY * * pde, unsigned char wc )
-{
- while ( pos->cluster < F_CLUSTER_RESERVED )
- {
- for ( ; pos->sector < pos->sectorend ; pos->sector++ )
- {
- F_DIRENTRY * de = (F_DIRENTRY *)( gl_sector + sizeof( F_DIRENTRY ) * pos->pos );
-
- if ( _f_readglsector( pos->sector ) )
- {
- return 0; /*not found*/
- }
-
- for ( ; pos->pos < F_SECTOR_SIZE / sizeof( F_DIRENTRY ) ; de++, pos->pos++ )
- {
- unsigned char b, ok;
-
- if ( !de->name[0] )
- {
- return 0; /*empty*/
- }
-
- if ( (unsigned char)( de->name[0] ) == 0xe5 )
- {
- continue; /*deleted*/
- }
-
- if ( de->attr & F_ATTR_VOLUME )
- {
- continue;
- }
-
- if ( wc )
- {
- for ( b = 0, ok = 1 ; b < sizeof( de->name ) ; b++ )
- {
- if ( name[b] == '*' )
- {
- break;
- }
-
- if ( name[b] != '?' )
- {
- if ( de->name[b] != name[b] )
- {
- ok = 0;
- break;
- }
- }
- }
-
- if ( ok )
- {
- for ( b = 0, ok = 1 ; b < sizeof( de->ext ) ; b++ )
- {
- if ( ext[b] == '*' )
- {
- if ( pde )
- {
- *pde = de;
- }
-
- return 1;
- }
-
- if ( ext[b] != '?' )
- {
- if ( de->ext[b] != ext[b] )
- {
- ok = 0;
- break;
- }
- }
- }
-
- if ( ok )
- {
- if ( pde )
- {
- *pde = de;
- }
-
- return 1;
- }
- }
- }
- else
- {
- for ( b = 0, ok = 1 ; b < sizeof( de->name ) ; b++ )
- {
- if ( de->name[b] != name[b] )
- {
- ok = 0;
- break;
- }
- }
-
- if ( ok )
- {
- for ( b = 0, ok = 1 ; b < sizeof( de->ext ) ; b++ )
- {
- if ( de->ext[b] != ext[b] )
- {
- ok = 0;
- break;
- }
- }
-
- if ( ok )
- {
- if ( pde )
- {
- *pde = de;
- }
-
- return 1;
- }
- }
- }
- }
-
- pos->pos = 0;
- }
-
- if ( !pos->cluster )
- {
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- pos->cluster = gl_volume.bootrecord.rootcluster;
- }
- else
- {
- return 0;
- }
- }
-
- {
- unsigned long nextcluster;
- gl_volume.fatsector = (unsigned long)-1;
- if ( _f_getclustervalue( pos->cluster, &nextcluster ) )
- {
- return 0; /*not found*/
- }
-
- if ( nextcluster >= F_CLUSTER_RESERVED )
- {
- return 0; /*eof*/
- }
-
- _f_clustertopos( nextcluster, pos );
- }
- } /* _f_findfilewc */
-
- return 0;
-}
-
-
-/****************************************************************************
- *
- * _f_getfilename
- *
- * create a complete filename from name and extension
- *
- * INPUTS
- *
- * dest - where to store filename
- * name - name of the file
- * ext - extension of the file
- *
- ***************************************************************************/
-static void _f_getfilename ( char * dest, char * name, char * ext )
-{
- unsigned char a, len;
-
- for ( len = a = F_MAXNAME ; a ; a--, len-- )
- {
- if ( name[a - 1] != ' ' )
- {
- break;
- }
- }
-
- for ( a = 0 ; a < len ; a++ )
- {
- *dest++ = *name++;
- }
-
-
- for ( len = a = F_MAXEXT ; a ; a--, len-- )
- {
- if ( ext[a - 1] != ' ' )
- {
- break;
- }
- }
-
- if ( len )
- {
- *dest++ = '.';
- }
-
- for ( a = 0 ; a < len ; a++ )
- {
- *dest++ = *ext++;
- }
-
- *dest = 0; /*terminateit*/
-} /* _f_getfilename */
-
-
-
-
-/****************************************************************************
- *
- * _f_getdecluster
- *
- * get a directory entry structure start cluster value
- *
- * INPUTS
- *
- * de - directory entry
- *
- * RETURNS
- *
- * directory entry cluster value
- *
- ***************************************************************************/
-unsigned long _f_getdecluster ( F_DIRENTRY * de )
-{
- unsigned long cluster;
-
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- cluster = _f_getword( &de->clusterhi );
- cluster <<= 16;
- cluster |= _f_getword( &de->clusterlo );
- return cluster;
- }
-
- return _f_getword( &de->clusterlo );
-}
-
-
-/****************************************************************************
- *
- * _f_setdecluster
- *
- * set a directory entry structure start cluster value
- *
- * INPUTS
- *
- * de - directory entry
- * cluster - value of the start cluster
- *
- ***************************************************************************/
-void _f_setdecluster ( F_DIRENTRY * de, unsigned long cluster )
-{
- _f_setword( &de->clusterlo, (unsigned short)( cluster & 0xffff ) );
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- _f_setword( &de->clusterhi, (unsigned short)( cluster >> 16 ) );
- }
- else
- {
- _f_setword( &de->clusterhi, (unsigned short)0 );
- }
-}
-
-
-/****************************************************************************
- *
- * _f_findpath
- *
- * finding out if path is valid in F_NAME and
- * correct path info with absolute path (removes relatives)
- *
- * INPUTS
- *
- * fsname - filled structure with path,drive
- * pos - where to start searching, and contains current position
- *
- * RETURNS
- *
- * 0 - if path was not found or invalid
- * 1 - if path was found
- *
- ***************************************************************************/
-unsigned char _f_findpath ( F_NAME * fsname, F_POS * pos )
-{
- char * path = fsname->path;
- char * mpath = path;
- F_DIRENTRY * de;
-
- _f_clustertopos( 0, pos );
-
- for ( ; *path ; )
- {
- char name[F_MAXNAME];
- char ext[F_MAXEXT];
-
- unsigned char len = _f_setnameext( path, name, ext );
-
- if ( ( pos->cluster == 0 ) && ( len == 1 ) && ( name[0] == '.' ) )
- {
- _f_clustertopos( 0, pos );
- }
- else
- {
- if ( !_f_findfilewc( name, ext, pos, &de, 0 ) )
- {
- return 0;
- }
-
- if ( !( de->attr & F_ATTR_DIR ) )
- {
- return 0;
- }
-
- _f_clustertopos( _f_getdecluster( de ), pos );
- }
-
-
- if ( name[0] == '.' )
- {
- if ( len == 1 )
- {
- path += len;
-
- if ( !( *path ) )
- {
- if ( mpath != fsname->path )
- {
- mpath--; /*if we are now at the top*/
- }
-
- break;
- }
-
- path++;
- continue;
- }
-
- if ( name[1] != '.' )
- {
- return 0; /*invalid name*/
- }
-
- if ( len != 2 )
- {
- return 0; /*invalid name !*/
- }
-
- path += len;
-
- if ( mpath == fsname->path )
- {
- return 0; /*we are in the top*/
- }
-
- mpath--; /*no on separator*/
- for ( ; ; )
- {
- if ( mpath == fsname->path )
- {
- break; /*we are now at the top*/
- }
-
- mpath--;
- if ( *mpath == '/' )
- {
- mpath++;
- break;
- }
- }
-
- if ( !( *path ) )
- {
- if ( mpath != fsname->path )
- {
- mpath--; /*if we are now at the top*/
- }
-
- break;
- }
-
- path++;
- continue;
- }
- else
- {
- if ( path == mpath ) /*if no was dots just step*/
- {
- path += len;
- mpath += len;
- }
- else
- {
- unsigned char a;
- for ( a = 0 ; a < len ; a++ )
- {
- *mpath++ = *path++; /*copy if in different pos*/
- }
- }
- }
-
- if ( !( *path ) )
- {
- break;
- }
-
- path++;
- *mpath++ = '/'; /*add separator*/
- }
-
- *mpath = 0; /*terminate it*/
- return 1;
-} /* _f_findpath */
-
-
-/****************************************************************************
- *
- * fn_getcwd
- *
- * getting a current working directory of current drive
- *
- * INPUTS
- *
- * buffer - where to store current working folder
- * maxlen - buffer length (possible size is F_MAXPATH)
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_getcwd ( char * buffer, unsigned char maxlen, char root )
-{
- unsigned char a;
-
- if ( !maxlen )
- {
- return F_NO_ERROR;
- }
-
- maxlen--; /*need for termination*/
- if ( root && maxlen )
- {
- *buffer++ = '/';
- maxlen--;
- }
-
- for ( a = 0 ; a < maxlen ; a++ )
- {
- char ch = gl_volume.cwd[a];
- buffer[a] = ch;
- if ( !ch )
- {
- break;
- }
- }
-
- buffer[a] = 0; /*add terminator at the end*/
-
- return F_NO_ERROR;
-} /* fn_getcwd */
-
-
-
-/****************************************************************************
- *
- * fn_findfirst
- *
- * find a file(s) or directory(s) in directory
- *
- * INPUTS
- *
- * filename - filename (with or without wildcards)
- * find - where to store found file information
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_findfirst ( const char * filename, F_FIND * find )
-{
- unsigned char ret;
-
- if ( _f_setfsname( filename, &find->findfsname ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( _f_checkname( find->findfsname.filename, find->findfsname.fileext ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name, wildcard is ok*/
- }
-
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( !_f_findpath( &find->findfsname, &find->pos ) )
- {
- return F_ERR_INVALIDDIR; /*search for path*/
- }
-
- return fn_findnext( find );
-} /* fn_findfirst */
-
-
-
-/****************************************************************************
- *
- * fn_findnext
- *
- * find further file(s) or directory(s) in directory
- *
- * INPUTS
- *
- * find - where to store found file information (findfirst should call 1st)
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_findnext ( F_FIND * find )
-{
- F_DIRENTRY * de;
- unsigned char a;
- unsigned char ret;
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( !_f_findfilewc( find->findfsname.filename, find->findfsname.fileext, &find->pos, &de, 1 ) )
- {
- return F_ERR_NOTFOUND;
- }
-
- for ( a = 0 ; a < F_MAXNAME ; a++ )
- {
- find->name[a] = de->name[a];
- }
-
- for ( a = 0 ; a < F_MAXEXT ; a++ )
- {
- find->ext[a] = de->ext[a];
- }
-
- _f_getfilename( find->filename, (char *)de->name, (char *)de->ext );
-
- find->attr = de->attr;
- find->cdate = _f_getword( &de->cdate );
- find->ctime = _f_getword( &de->ctime );
- find->filesize = (long)_f_getlong( &de->filesize );
- find->cluster = _f_getdecluster( de );
- find->pos.pos++; /*goto next position*/
-
- return 0;
-} /* fn_findnext */
-
-
-
-/****************************************************************************
- *
- * fn_chdir
- *
- * change current working directory
- *
- * INPUTS
- *
- * dirname - new working directory name
- *
- * RETURNS
- *
- * 0 - if successfully
- * other - if any error
- *
- ***************************************************************************/
-unsigned char fn_chdir ( const char * dirname )
-{
- F_POS pos;
- F_NAME fsname;
- unsigned char len;
- unsigned char a;
- unsigned char ret;
-
- ret = _f_setfsname( dirname, &fsname );
-
- if ( ret == 1 )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- for ( len = 0 ; fsname.path[len] ; )
- {
- len++;
- }
-
- if ( len && ( ( fsname.filename[0] != 32 ) || ( fsname.fileext[0] != 32 ) ) )
- {
- fsname.path[len++] = '/';
- }
-
- _f_getfilename( fsname.path + len, fsname.filename, fsname.fileext );
-
- if ( !( _f_findpath( &fsname, &pos ) ) )
- {
- return F_ERR_NOTFOUND;
- }
-
- for ( a = 0 ; a < F_MAXPATH ; a++ )
- {
- gl_volume.cwd[a] = fsname.path[a];
- }
-
- return F_NO_ERROR;
-} /* fn_chdir */
-
-
-
-/****************************************************************************
- *
- * _f_initentry
- *
- * init directory entry, this function is called if a new entry is coming
- *
- * INPUTS
- *
- * de - directory entry which needs to be initialized
- * name - fil ename (8)
- * ext - file extension (3)
- *
- ***************************************************************************/
-static void _f_initentry ( F_DIRENTRY * de, char * name, char * ext )
-{
- unsigned short date;
- unsigned short time;
-
- psp_memset( de, 0, sizeof( F_DIRENTRY ) ); /*reset all entries*/
-
- psp_memcpy( de->name, name, sizeof( de->name ) );
- psp_memcpy( de->ext, ext, sizeof( de->ext ) );
-
- f_igettimedate( &time, &date );
- _f_setword( &de->cdate, date ); /*if there is realtime clock then creation date could be set from*/
- _f_setword( &de->ctime, time ); /*if there is realtime clock then creation time could be set from*/
-}
-
-
-
-
-
-/****************************************************************************
- *
- * _f_addentry
- *
- * Add a new directory entry into driectory list
- *
- * INPUTS
- *
- * fs_name - filled structure what to add into directory list
- * pos - where directory cluster chains starts
- * pde - F_DIRENTRY pointer where to store the entry where it was added
- *
- * RETURNS
- *
- * 0 - if successfully added
- * other - if any error (see FS_xxx errorcodes)
- *
- ***************************************************************************/
-unsigned char _f_addentry ( F_NAME * fsname, F_POS * pos, F_DIRENTRY * * pde )
-{
- unsigned char ret;
- unsigned short date;
- unsigned short time;
-
- if ( !fsname->filename[0] )
- {
- return F_ERR_INVALIDNAME;
- }
-
- if ( fsname->filename[0] == '.' )
- {
- return F_ERR_INVALIDNAME;
- }
-
- while ( pos->cluster < F_CLUSTER_RESERVED )
- {
- for ( ; pos->sector < pos->sectorend ; pos->sector++ )
- {
- F_DIRENTRY * de = (F_DIRENTRY *)( gl_sector + sizeof( F_DIRENTRY ) * pos->pos );
-
- ret = _f_readglsector( pos->sector );
- if ( ret )
- {
- return ret;
- }
-
- for ( ; pos->pos < F_SECTOR_SIZE / sizeof( F_DIRENTRY ) ; de++, pos->pos++ )
- {
- if ( ( !de->name[0] ) || ( (unsigned char)( de->name[0] ) == 0xe5 ) )
- {
- _f_initentry( de, fsname->filename, fsname->fileext );
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- f_igettimedate( &time, &date );
- _f_setword( &de->crtdate, date ); /*if there is realtime clock then creation date could be set from*/
- _f_setword( &de->crttime, time ); /*if there is realtime clock then creation time could be set from*/
- _f_setword( &de->lastaccessdate, date ); /*if there is realtime clock then creation date could be set from*/
- }
-
- if ( pde )
- {
- *pde = de;
- }
-
- return F_NO_ERROR;
- }
- }
-
- pos->pos = 0;
- }
-
- if ( !pos->cluster )
- {
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- pos->cluster = gl_volume.bootrecord.rootcluster;
- }
- else
- {
- return F_ERR_NOMOREENTRY;
- }
- }
-
- {
- unsigned long cluster;
-
- gl_volume.fatsector = (unsigned long)-1;
- ret = _f_getclustervalue( pos->cluster, &cluster ); /*try to get next cluster*/
- if ( ret )
- {
- return ret;
- }
-
- if ( cluster < F_CLUSTER_RESERVED )
- {
- _f_clustertopos( cluster, pos );
- }
- else
- {
- ret = _f_alloccluster( &cluster ); /*get a new one*/
- if ( ret )
- {
- return ret;
- }
-
- if ( cluster < F_CLUSTER_RESERVED )
- {
- if ( gl_file.mode != F_FILE_CLOSE )
- {
- return F_ERR_NOMOREENTRY;
- }
-
- _f_clustertopos( cluster, &gl_file.pos );
-
- ret = _f_setclustervalue( gl_file.pos.cluster, F_CLUSTER_LAST );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_setclustervalue( pos->cluster, gl_file.pos.cluster );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_writefatsector();
- if ( ret )
- {
- return ret;
- }
-
- gl_volume.fatsector = (unsigned long)-1;
- psp_memset( gl_sector, 0, F_SECTOR_SIZE );
- while ( gl_file.pos.sector < gl_file.pos.sectorend )
- {
- ret = _f_writeglsector( gl_file.pos.sector );
- if ( ret )
- {
- return ret;
- }
-
- gl_file.pos.sector++;
- }
-
- _f_clustertopos( gl_file.pos.cluster, pos );
- }
- else
- {
- return F_ERR_NOMOREENTRY;
- }
- }
- }
- } /* _f_addentry */
-
- return F_ERR_NOMOREENTRY;
-}
-
-
-
-/****************************************************************************
- *
- * fn_mkdir
- *
- * making a new directory
- *
- * INPUTS
- *
- * dirname - new directory name
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_mkdir ( const char * dirname )
-{
- F_POS posdir;
- F_POS pos;
- F_DIRENTRY * de;
- F_NAME fsname;
- unsigned long cluster;
- unsigned char ret;
-
- #if F_FILE_CHANGED_EVENT
- ST_FILE_CHANGED fc;
- #endif
-
- if ( _f_setfsname( dirname, &fsname ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( !_f_findpath( &fsname, &posdir ) )
- {
- return F_ERR_INVALIDDIR;
- }
-
- pos = posdir;
-
- if ( fsname.filename[0] == '.' )
- {
- return F_ERR_NOTFOUND;
- }
-
- if ( _f_findfilewc( fsname.filename, fsname.fileext, &pos, &de, 0 ) )
- {
- return F_ERR_DUPLICATED;
- }
-
- pos = posdir;
-
- gl_volume.fatsector = (unsigned long)-1;
- ret = _f_alloccluster( &cluster );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_addentry( &fsname, &pos, &de );
- if ( ret )
- {
- return ret;
- }
-
- de->attr |= F_ATTR_DIR; /*set as directory*/
-
- #if F_FILE_CHANGED_EVENT
- if ( f_filechangedevent )
- {
- fc.action = FACTION_ADDED;
- fc.flags = FFLAGS_DIR_NAME | FFLAGS_ATTRIBUTES | FFLAGS_SIZE | FFLAGS_LAST_WRITE;
- fc.attr = de->attr;
- fc.ctime = _f_getword( de->ctime );
- fc.cdate = _f_getword( de->cdate );
- fc.filesize = _f_getlong( de->filesize );
- }
-
- #endif
-
- if ( gl_file.mode != F_FILE_CLOSE )
- {
- return F_ERR_LOCKED;
- }
-
- _f_clustertopos( cluster, &gl_file.pos );
- _f_setdecluster( de, cluster ); /*new dir*/
-
- (void)_f_writeglsector( (unsigned long)-1 ); /*write actual directory sector*/
-
-
- de = (F_DIRENTRY *)gl_sector;
-
- _f_initentry( de, ". ", " " );
- de->attr = F_ATTR_DIR; /*set as directory*/
- _f_setdecluster( de, cluster ); /*current*/
- de++;
-
- _f_initentry( de, ".. ", " " );
- de->attr = F_ATTR_DIR; /*set as directory*/
- _f_setdecluster( de, posdir.cluster ); /*parent*/
- de++;
-
- psp_memset( de, 0, ( F_SECTOR_SIZE - 2 * sizeof( F_DIRENTRY ) ) );
-
-
- ret = _f_writeglsector( gl_file.pos.sector );
- if ( ret )
- {
- return ret;
- }
-
- gl_file.pos.sector++;
- psp_memset( gl_sector, 0, ( 2 * sizeof( F_DIRENTRY ) ) );
- while ( gl_file.pos.sector < gl_file.pos.sectorend )
- {
- ret = _f_writeglsector( gl_file.pos.sector );
- if ( ret )
- {
- return ret;
- }
-
- gl_file.pos.sector++;
- }
-
- gl_volume.fatsector = (unsigned long)-1;
- ret = _f_setclustervalue( gl_file.pos.cluster, F_CLUSTER_LAST );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_writefatsector();
- #if F_FILE_CHANGED_EVENT
- if ( f_filechangedevent && !ret )
- {
- fc.action = FACTION_ADDED;
- fc.flags = FFLAGS_DIR_NAME;
-
- if ( !_f_createfullname( fc.filename, sizeof( fc.filename ), fsname.path, fsname.filename, fsname.fileext ) )
- {
- f_filechangedevent( &fc );
- }
- }
-
- #endif
-
- return ret;
-} /* fn_mkdir */
-
-
-
-/****************************************************************************
- *
- * fn_rmdir
- *
- * Remove directory, only could be removed if empty
- *
- * INPUTS
- *
- * dirname - which directory needed to be removed
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_rmdir ( const char * dirname )
-{
- unsigned char ret;
- F_POS pos;
- F_DIRENTRY * de;
- F_NAME fsname;
- unsigned long dirsector;
- unsigned char a;
-
- if ( _f_setfsname( dirname, &fsname ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( fsname.filename[0] == '.' )
- {
- return F_ERR_NOTFOUND;
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( !( _f_findpath( &fsname, &pos ) ) )
- {
- return F_ERR_INVALIDDIR;
- }
-
- if ( !_f_findfilewc( fsname.filename, fsname.fileext, &pos, &de, 0 ) )
- {
- return F_ERR_NOTFOUND;
- }
-
- if ( !( de->attr & F_ATTR_DIR ) )
- {
- return F_ERR_INVALIDDIR; /*not a directory*/
- }
-
- dirsector = gl_volume.actsector;
-
- if ( gl_file.mode != F_FILE_CLOSE )
- {
- return F_ERR_LOCKED;
- }
-
- _f_clustertopos( _f_getdecluster( de ), &gl_file.pos );
-
- for ( ; ; )
- {
- F_DIRENTRY * de2;
- char ch = 0;
-
- ret = _f_getcurrsector();
- if ( ret == F_ERR_EOF )
- {
- break;
- }
-
- if ( ret )
- {
- return ret;
- }
-
- de2 = (F_DIRENTRY *)gl_sector;
- for ( a = 0 ; a < ( F_SECTOR_SIZE / sizeof( F_DIRENTRY ) ) ; a++, de2++ )
- {
- ch = de2->name[0];
- if ( !ch )
- {
- break;
- }
-
- if ( (unsigned char)ch == 0xe5 )
- {
- continue;
- }
-
- if ( ch == '.' )
- {
- continue;
- }
-
- return F_ERR_NOTEMPTY; /*something is there*/
- }
-
- if ( !ch )
- {
- break;
- }
-
- gl_file.pos.sector++;
- }
-
- ret = _f_readglsector( dirsector );
- if ( ret )
- {
- return ret;
- }
-
- de->name[0] = (unsigned char)0xe5;
-
- ret = _f_writeglsector( dirsector );
- if ( ret )
- {
- return ret;
- }
-
- gl_volume.fatsector = (unsigned long)-1;
- ret = _f_removechain( _f_getdecluster( de ) );
- #if F_FILE_CHANGED_EVENT
- if ( f_filechangedevent && !ret )
- {
- ST_FILE_CHANGED fc;
- fc.action = FACTION_REMOVED;
- fc.flags = FFLAGS_DIR_NAME;
-
- if ( !_f_createfullname( fc.filename, sizeof( fc.filename ), fsname.path, fsname.filename, fsname.fileext ) )
- {
- f_filechangedevent( &fc );
- }
- }
-
- #endif
- return ret;
-} /* fn_rmdir */
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.h
deleted file mode 100644
index 6bd8a2b97..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/dir.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __DIR_H
-#define __DIR_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/* definitions for ctime */
-#define F_CTIME_SEC_SHIFT 0
-#define F_CTIME_SEC_MASK 0x001f /*0-30 in 2seconds*/
-#define F_CTIME_MIN_SHIFT 5
-#define F_CTIME_MIN_MASK 0x07e0 /*0-59 */
-#define F_CTIME_HOUR_SHIFT 11
-#define F_CTIME_HOUR_MASK 0xf800 /*0-23*/
-
-
-/* definitions for cdate */
-#define F_CDATE_DAY_SHIFT 0
-#define F_CDATE_DAY_MASK 0x001f /*0-31*/
-#define F_CDATE_MONTH_SHIFT 5
-#define F_CDATE_MONTH_MASK 0x01e0 /*1-12*/
-#define F_CDATE_YEAR_SHIFT 9
-#define F_CDATE_YEAR_MASK 0xfe00 /*0-119 (1980+value)*/
-
-
-#define NTRES_LOW 0x08 /*lower case name*/
-
-
-typedef struct
-{
- unsigned char name[F_MAXNAME]; /* 8+3 */
- unsigned char ext[F_MAXEXT];
- unsigned char attr; /* 00ADVSHR */
-
- unsigned char ntres; /* FAT32 only */
- unsigned char crttimetenth; /* FAT32 only */
- unsigned char crttime[2]; /* FAT32 only */
- unsigned char crtdate[2]; /* FAT32 only */
- unsigned char lastaccessdate[2]; /* FAT32 only */
-
- unsigned char clusterhi[2]; /* FAT32 only */
- unsigned char ctime[2];
- unsigned char cdate[2];
- unsigned char clusterlo[2]; /* fat12,fat16,fat32 */
- unsigned char filesize[4];
-} F_DIRENTRY;
-
-
-unsigned char _f_getdirsector ( unsigned long );
-unsigned char _f_findfilewc ( char *, char *, F_POS *, F_DIRENTRY * *, unsigned char );
-unsigned char _f_findpath ( F_NAME *, F_POS * );
-unsigned long _f_getdecluster ( F_DIRENTRY * );
-
-unsigned char _f_writedirsector ( void );
-void _f_setdecluster ( F_DIRENTRY *, unsigned long );
-unsigned char _f_addentry ( F_NAME *, F_POS *, F_DIRENTRY * * );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __DIR_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.c
deleted file mode 100644
index ccc232475..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.c
+++ /dev/null
@@ -1,218 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-#include "../../psp/include/psp_string.h"
-
-#include "drv.h"
-#include "util.h"
-#include "volume.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-F_DRIVER * mdrv = NULL; /* driver structure */
-
-
-/****************************************************************************
- *
- * _f_checkstatus
- *
- * checking a volume driver status, if media is removed or has been changed
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_checkstatus ( void )
-{
- if ( mdrv->getstatus != NULL )
- {
- if ( mdrv->getstatus( mdrv ) & ( F_ST_MISSING | F_ST_CHANGED ) )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card has been removed;*/
- return F_ERR_CARDREMOVED;
- }
- }
-
- return F_NO_ERROR;
-}
-
-
-/****************************************************************************
- *
- * _f_writesector
- *
- * write sector data on a volume, it calls low level driver function, it
- * writes a complete sector
- *
- * INPUTS
- * sector - which physical sector
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_writeglsector ( unsigned long sector )
-{
- unsigned char retry;
-
- if ( mdrv->writesector == NULL )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*no write function*/
- return F_ERR_ACCESSDENIED;
- }
-
- if ( sector == (unsigned long)-1 )
- {
- if ( gl_file.modified )
- {
- sector = gl_file.pos.sector;
- }
- else
- {
- sector = gl_volume.actsector;
- }
- }
-
- if ( sector != (unsigned long)-1 )
- {
- if ( mdrv->getstatus != NULL )
- {
- unsigned int status;
-
- status = mdrv->getstatus( mdrv );
-
- if ( status & ( F_ST_MISSING | F_ST_CHANGED ) )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card has been removed;*/
- return F_ERR_CARDREMOVED;
- }
-
- if ( status & ( F_ST_WRPROTECT ) )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card has been removed;*/
- return F_ERR_WRITEPROTECT;
- }
- }
-
- gl_volume.modified = 0;
- gl_file.modified = 0;
- gl_volume.actsector = sector;
- for ( retry = 3 ; retry ; retry-- )
- {
- int mdrv_ret;
- mdrv_ret = mdrv->writesector( mdrv, (unsigned char *)gl_sector, sector );
- if ( !mdrv_ret )
- {
- return F_NO_ERROR;
- }
-
- if ( mdrv_ret == -1 )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card has been removed;*/
- return F_ERR_CARDREMOVED;
- }
- }
- }
-
-
- return F_ERR_ONDRIVE;
-} /* _f_writeglsector */
-
-
-/****************************************************************************
- *
- * _f_readsector
- *
- * read sector data from a volume, it calls low level driver function, it
- * reads a complete sector
- *
- * INPUTS
- * sector - which physical sector is read
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_readglsector ( unsigned long sector )
-{
- unsigned char retry;
- unsigned char ret;
-
- if ( sector == gl_volume.actsector )
- {
- return F_NO_ERROR;
- }
-
- if ( gl_volume.modified || gl_file.modified )
- {
- ret = _f_writeglsector( (unsigned long)-1 );
- if ( ret )
- {
- return ret;
- }
- }
-
-
- for ( retry = 3 ; retry ; retry-- )
- {
- int mdrv_ret;
- mdrv_ret = mdrv->readsector( mdrv, (unsigned char *)gl_sector, sector );
- if ( !mdrv_ret )
- {
- gl_volume.actsector = sector;
- return F_NO_ERROR;
- }
-
- if ( mdrv_ret == -1 )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card has been removed;*/
- return F_ERR_CARDREMOVED;
- }
- }
-
- gl_volume.actsector = (unsigned long)-1;
- return F_ERR_ONDRIVE;
-} /* _f_readglsector */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.h
deleted file mode 100644
index 5d0ff726c..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/drv.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __DRV_H
-#define __DRV_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-extern F_DRIVER * mdrv; /* driver structure */
-
-unsigned char _f_checkstatus ( void );
-unsigned char _f_readglsector ( unsigned long );
-unsigned char _f_writeglsector ( unsigned long );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __DRV_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.c
deleted file mode 100644
index 3a6ca633a..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.c
+++ /dev/null
@@ -1,644 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#define FS_MUTEX_DEFINED
-
-#include "../../api/fat_sl.h"
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#if F_FS_THREAD_AWARE == 1
-
-xSemaphoreHandle fs_lock_semaphore;
-
-
-/*
-** fr_findfirst
-**
-** find first time a file using wildcards
-**
-** INPUT : filename - name of the file
-** *find - pointer to a pre-define F_FIND structure
-** RETURN: F_NOERR - on success
-** F_ERR_NOTFOUND - if not found
-*/
-unsigned char fr_findfirst ( const char * filename, F_FIND * find )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_findfirst( filename, find );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_findnext
-**
-** find next time a file using wildcards
-**
-** INPUT : *find - pointer to a pre-define F_FIND structure
-** RETURN: F_NOERR - on success
-** F_ERR_NOTFOUND - if not found
-*/
-unsigned char fr_findnext ( F_FIND * find )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_findnext( find );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_filelength
-**
-** Get the length of a file
-**
-** INPUT : filename - name of the file
-** RETURN: size of the file or F_ERR_INVALID if not exists or volume not working
-*/
-long fr_filelength ( const char * filename )
-{
- unsigned long rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_filelength( filename );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = 0;
- }
-
- return rc;
-}
-
-
-/*
-** fr_open
-**
-** open a file
-**
-** INPUT : filename - file to be opened
-** mode - open method (r,w,a,r+,w+,a+)
-** RETURN: pointer to a file descriptor or 0 on error
-*/
-F_FILE * fr_open ( const char * filename, const char * mode )
-{
- F_FILE * rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_open( filename, mode );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = NULL;
- }
-
- return rc;
-}
-
-
-/*
-** fr_close
-**
-** Close a previously opened file.
-**
-** INPUT : *filehandle - pointer to the file descriptor
-** RETURN: F_NOERR on success, other if error
-*/
-unsigned char fr_close ( F_FILE * filehandle )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_close( filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_read
-**
-** Read from a file.
-**
-** INPUT : buf - buffer to read data
-** size - number of unique
-** size_st - size of unique
-** *filehandle - pointer to file descriptor
-** OUTPUT: number of read bytes
-*/
-long fr_read ( void * bbuf, long size, long size_st, F_FILE * filehandle )
-{
- long rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_read( bbuf, size, size_st, filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = 0;
- }
-
- return rc;
-}
-
-
-/*
-** fr_write
-**
-** INPUT : bbuf - buffer to write from
-** size - number of unique
-** size_st - size of unique
-** *filehandle - pointer to the file descriptor
-** RETURN: number of written bytes
-*/
-long fr_write ( const void * bbuf, long size, long size_st, F_FILE * filehandle )
-{
- long rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_write( bbuf, size, size_st, filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = 0;
- }
-
- return rc;
-}
-
-/*
-** fr_seek
-**
-** Seek in a file.
-**
-** INPUT : *filehandle - pointer to a file descriptor
-** offset - offset
-** whence - F_SEEK_SET: position = offset
-** F_SEEK_CUR: position = position + offset
-** F_SEEK_END: position = end of file (offset=0)
-** RETURN: F_NOERR on succes, other if error.
-*/
-unsigned char fr_seek ( F_FILE * filehandle, long offset, unsigned char whence )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_seek( filehandle, offset, whence );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-/*
-** fr_tell
-**
-** get current position in the file
-**
-** INPUT : *filehandle - pointer to a file descriptor
-** RETURN: -1 on error or current position.
-*/
-long fr_tell ( F_FILE * filehandle )
-{
- long rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_tell( filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = -1;
- }
-
- return rc;
-}
-
-/*
-** fr_getc
-**
-** read one byte from a file
-**
-** INPUT : *filehandle - pointer to a file descriptor
-** RETURN: -1 if error, otherwise the read character.
-*/
-int fr_getc ( F_FILE * filehandle )
-{
- int rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_getc( filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = -1;
- }
-
- return rc;
-}
-
-/*
-** fr_putc
-**
-** write one byte to a file
-**
-** INPUT : ch - character to write
-** *filehandle - pointer to a file handler
-** RETURN: ch on success, -1 on error
-*/
-int fr_putc ( int ch, F_FILE * filehandle )
-{
- int rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_putc( ch, filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = -1;
- }
-
- return rc;
-}
-
-/*
-** fr_rewind
-**
-** set current position in the file to the beginning
-**
-** INPUT : *filehandle - pointer to a file descriptor
-** RETURN: F_NOERR on succes, other if error.
-*/
-unsigned char fr_rewind ( F_FILE * filehandle )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_rewind( filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-/*
-** fr_eof
-**
-** check if current position is at the end of the file.
-**
-** INPUT : *filehandle - pointer to a file descriptor
-** RETURN: F_ERR_EOF - at the end of the file
-** F_NOERR - no error, end of the file not reached
-** other - on error
-*/
-unsigned char fr_eof ( F_FILE * filehandle )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_eof( filehandle );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-/*
-** Format the device
-*/
-unsigned char fr_hardformat ( unsigned char fattype )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_hardformat( fattype );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-/*
-** fr_get_serial
-**
-** Get serial number
-**
-** OUTPUT: serial - where to write the serial number
-** RETURN: error code
-*/
-unsigned char fr_getserial ( unsigned long * serial )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_getserial( serial );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_delete
-**
-** Delete a file. Removes the chain that belongs to the file and inserts a new descriptor
-** to the directory with first_cluster set to 0.
-**
-** INPUT : filename - name of the file to delete
-** RETURN: F_NOERR on success, other if error.
-*/
-unsigned char fr_delete ( const char * filename )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_delete( filename );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-/*
-** fr_truncate
-**
-** Open a file and set end of file
-**
-** INPUT: filename - name of the file
-** filesize - required new size
-** RETURN: NULL on error, otherwise file pointer
-*/
-F_FILE * fr_truncate ( const char * filename, long filesize )
-{
- F_FILE * f;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- f = fn_truncate( filename, filesize );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- f = NULL;
- }
-
- return f;
-}
-
-
-/*
-** fr_getfreespace
-**
-** Get free space on the volume
-**
-** OUTPUT: *sp - pre-defined F_SPACE structure, where information will be stored
-** RETURN: F_NOERR - on success
-** F_ERR_NOTFORMATTED - if volume is not formatted
-*/
-unsigned char fr_getfreespace ( F_SPACE * sp )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_getfreespace( sp );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_chdir
-**
-** Change to a directory
-**
-** INPUT: path - path to the dircetory
-** RETURN: 0 - on success, other if error
-*/
-unsigned char fr_chdir ( const char * path )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_chdir( path );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_mkdir
-**
-** Create a directory
-**
-** INPUT: path - new directory path
-** RETURN: 0 - on success, other if error
-*/
-unsigned char fr_mkdir ( const char * path )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_mkdir( path );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_rmdir
-**
-** Removes a directory
-**
-** INPUT: path - path to remove
-** RETURN: 0 - on success, other if error
-*/
-unsigned char fr_rmdir ( const char * path )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_rmdir( path );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_getcwd
-**
-** Get current working directory
-**
-** INPUT: maxlen - maximum length allowed
-** OUTPUT: path - current working directory
-** RETURN: 0 - on success, other if error
-*/
-unsigned char fr_getcwd ( char * path, unsigned char maxlen, char root )
-{
- unsigned char rc;
-
- if( xSemaphoreTake( fs_lock_semaphore, F_MAX_LOCK_WAIT_TICKS ) == pdPASS )
- {
- rc = fn_getcwd( path, maxlen, root );
- xSemaphoreGive( fs_lock_semaphore );
- }
- else
- {
- rc = F_ERR_OS;
- }
-
- return rc;
-}
-
-
-/*
-** fr_init
-**
-** Initialize FAT_SL OS module
-**
-** RETURN: F_NO_ERROR or F_ERR_OS
-*/
-unsigned char fr_init ( void )
-{
- return F_NO_ERROR;
-}
-
-#endif /* F_FS_THREAD_AWARE */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.h
deleted file mode 100644
index e62796014..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/f_lock.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _F_RTOS_H
-#define _F_RTOS_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-unsigned char fsr_init ( void );
-unsigned char fsr_delete ( void );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef _F_RTOS_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.c
deleted file mode 100644
index 057558e2e..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.c
+++ /dev/null
@@ -1,597 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-#include "../../api/fat_sl.h"
-
-#include "fat.h"
-#include "util.h"
-#include "volume.h"
-#include "drv.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-/****************************************************************************
- *
- * _f_writefatsector
- *
- * writing fat sector into volume, this function check if fat was modified
- * and writes data
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_writefatsector ( void )
-{
- unsigned char a;
-
- if ( gl_volume.modified )
- {
- unsigned long fatsector = gl_volume.firstfat.sector + gl_volume.fatsector;
-
- if ( gl_volume.fatsector >= gl_volume.firstfat.num )
- {
- return F_ERR_INVALIDSECTOR;
- }
-
- for ( a = 0 ; a < gl_volume.bootrecord.number_of_FATs ; a++ )
- {
- unsigned char ret;
- ret = _f_writeglsector( fatsector );
- if ( ret )
- {
- return ret;
- }
-
- fatsector += gl_volume.firstfat.num;
- }
-
- gl_volume.modified = 0;
- }
-
- return F_NO_ERROR;
-} /* _f_writefatsector */
-
-
-
-/****************************************************************************
- *
- * _f_getfatsector
- *
- * read a fat sector from media
- *
- * INPUTS
- *
- * sector - which fat sector is needed, this sector number is zero based
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_getfatsector ( unsigned long sector )
-{
- unsigned char a;
-
- if ( gl_volume.fatsector != sector )
- {
- unsigned long fatsector;
-
- gl_volume.fatsector = sector;
-
- if ( gl_volume.fatsector >= gl_volume.firstfat.num )
- {
- return F_ERR_INVALIDSECTOR;
- }
-
- fatsector = gl_volume.firstfat.sector + gl_volume.fatsector;
-
- for ( a = 0 ; a < gl_volume.bootrecord.number_of_FATs ; a++ )
- {
- if ( !_f_readglsector( fatsector ) )
- {
- return F_NO_ERROR;
- }
-
- fatsector += gl_volume.firstfat.num;
- }
-
- return F_ERR_READ;
- }
-
- return F_NO_ERROR;
-} /* _f_getfatsector */
-
-
-
-/****************************************************************************
- *
- * _f_setclustervalue
- *
- * set a cluster value in the FAT
- *
- * INPUTS
- *
- * cluster - which cluster's value need to be modified
- * data - new value of the cluster
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_setclustervalue ( unsigned long cluster, unsigned long _tdata )
-{
- unsigned char ret;
-
- switch ( gl_volume.mediatype )
- {
- case F_FAT16_MEDIA:
- {
- unsigned long sector = cluster;
- unsigned short s_data = (unsigned short)( _tdata & 0xffff ); /*keep 16 bit only*/
-
- sector /= ( F_SECTOR_SIZE / 2 );
- cluster -= sector * ( F_SECTOR_SIZE / 2 );
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- if ( _f_getword( &gl_sector[cluster << 1] ) != s_data )
- {
- _f_setword( &gl_sector[cluster << 1], s_data );
- gl_volume.modified = 1;
- }
- }
- break;
-
- case F_FAT12_MEDIA:
- {
- unsigned char f12new[2];
- unsigned long sector = cluster;
- unsigned short pos;
- unsigned short s_data = (unsigned short)( _tdata & 0x0fff ); /*keep 12 bit only*/
-
- if ( cluster & 1 )
- {
- s_data <<= 4;
- }
-
- _f_setword( f12new, s_data ); /*create new data*/
-
- sector += sector / 2; /*1.5 bytes*/
- pos = (unsigned short)( sector % F_SECTOR_SIZE );
- sector /= F_SECTOR_SIZE;
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- if ( cluster & 1 )
- {
- f12new[0] |= gl_sector[pos] & 0x0f;
- }
-
- if ( gl_sector[pos] != f12new[0] )
- {
- gl_sector[pos] = f12new[0];
- gl_volume.modified = 1;
- }
-
- pos++;
- if ( pos >= 512 )
- {
- ret = _f_getfatsector( sector + 1 );
- if ( ret )
- {
- return ret;
- }
-
- pos = 0;
- }
-
- if ( !( cluster & 1 ) )
- {
- f12new[1] |= gl_sector[pos] & 0xf0;
- }
-
- if ( gl_sector[pos] != f12new[1] )
- {
- gl_sector[pos] = f12new[1];
- gl_volume.modified = 1;
- }
- }
- break;
-
- case F_FAT32_MEDIA:
- {
- unsigned long sector = cluster;
- unsigned long oldv;
-
- sector /= ( F_SECTOR_SIZE / 4 );
- cluster -= sector * ( F_SECTOR_SIZE / 4 );
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- oldv = _f_getlong( &gl_sector[cluster << 2] );
-
- _tdata &= 0x0fffffff;
- _tdata |= oldv & 0xf0000000; /*keep 4 top bits*/
-
- if ( _tdata != oldv )
- {
- _f_setlong( &gl_sector[cluster << 2], _tdata );
- gl_volume.modified = 1;
- }
- }
- break;
-
- default:
- return F_ERR_INVALIDMEDIA;
- } /* switch */
-
- return F_NO_ERROR;
-} /* _f_setclustervalue */
-
-
-/****************************************************************************
- *
- * _f_getclustervalue
- *
- * get a cluster value from FAT
- *
- * INPUTS
- *
- * cluster - which cluster value is requested
- * pvalue - where to store data
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_getclustervalue ( unsigned long cluster, unsigned long * pvalue )
-{
- unsigned long val;
- unsigned char ret;
-
- switch ( gl_volume.mediatype )
- {
- case F_FAT16_MEDIA:
- {
- unsigned long sector = cluster;
- sector /= ( F_SECTOR_SIZE / 2 );
- cluster -= sector * ( F_SECTOR_SIZE / 2 );
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- val = _f_getword( &gl_sector[cluster << 1] );
- if ( val >= ( F_CLUSTER_RESERVED & 0xffff ) )
- {
- val |= 0x0ffff000; /*extends it*/
- }
-
- if ( pvalue )
- {
- *pvalue = val;
- }
- }
- break;
-
- case F_FAT12_MEDIA:
- {
- unsigned char dataf12[2];
- unsigned long sector = cluster;
- unsigned short pos;
-
- sector += sector / 2; /*1.5 bytes*/
- pos = (unsigned short)( sector % F_SECTOR_SIZE );
- sector /= F_SECTOR_SIZE;
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- dataf12[0] = gl_sector[pos++];
-
- if ( pos >= 512 )
- {
- ret = _f_getfatsector( sector + 1 );
- if ( ret )
- {
- return ret;
- }
-
- pos = 0;
- }
-
- dataf12[1] = gl_sector[pos];
-
- val = _f_getword( dataf12 );
-
- if ( cluster & 1 )
- {
- val = val >> 4;
- }
- else
- {
- val = val & 0xfff;
- }
-
- if ( val >= ( F_CLUSTER_RESERVED & 0xfff ) )
- {
- val |= 0x0ffff000; /*extends it*/
- }
-
- if ( pvalue )
- {
- *pvalue = val;
- }
- }
- break;
-
- case F_FAT32_MEDIA:
- {
- unsigned long sector = cluster;
- sector /= ( F_SECTOR_SIZE / 4 );
- cluster -= sector * ( F_SECTOR_SIZE / 4 );
-
- ret = _f_getfatsector( sector );
- if ( ret )
- {
- return ret;
- }
-
- if ( pvalue )
- {
- *pvalue = _f_getlong( &gl_sector[cluster << 2] ) & 0x0fffffff; /*28bit*/
- }
- }
- break;
-
- default:
- return F_ERR_INVALIDMEDIA;
- } /* switch */
-
- return F_NO_ERROR;
-} /* _f_getclustervalue */
-
-
-
-
-
-
-/****************************************************************************
- *
- * _f_clustertopos
- *
- * convert a cluster position into physical sector position
- *
- * INPUTS
- *
- * cluster - original cluster position
- * pos - position structure to fills the position
- *
- ***************************************************************************/
-void _f_clustertopos ( unsigned long cluster, F_POS * pos )
-{
- pos->cluster = cluster;
-
- if ( !cluster )
- {
- pos->sector = gl_volume.root.sector;
- pos->sectorend = pos->sector + gl_volume.root.num;
- }
- else
- {
- unsigned long sectorcou = gl_volume.bootrecord.sector_per_cluster;
- pos->sector = ( pos->cluster - 2 ) * sectorcou + gl_volume._tdata.sector;
- pos->sectorend = pos->sector + sectorcou;
- }
-
- if ( cluster >= F_CLUSTER_RESERVED )
- {
- pos->sectorend = 0;
- }
-
- pos->pos = 0;
-} /* _f_clustertopos */
-
-
-
-
-/****************************************************************************
- *
- * _f_getcurrsector
- *
- * read current sector according in file structure
- *
- * INPUTS
- * f - internal file pointer
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_getcurrsector ( void )
-{
- unsigned char ret;
- unsigned long cluster;
-
- if ( gl_file.pos.sector == gl_file.pos.sectorend )
- {
- gl_volume.fatsector = (unsigned long)-1;
- ret = _f_getclustervalue( gl_file.pos.cluster, &cluster );
- if ( ret )
- {
- return ret;
- }
-
- if ( cluster >= F_CLUSTER_RESERVED )
- {
- return F_ERR_EOF;
- }
-
- _f_clustertopos( cluster, &gl_file.pos );
- }
-
- return _f_readglsector( gl_file.pos.sector );
-} /* _f_getcurrsector */
-
-
-
-/****************************************************************************
- *
- * _f_alloccluster
- *
- * allocate cluster from FAT
- *
- * INPUTS
- * pcluster - where to store the allocated cluster number
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_alloccluster ( unsigned long * pcluster )
-{
- unsigned long maxcluster = gl_volume.maxcluster;
- unsigned long cou;
- unsigned long cluster = gl_volume.lastalloccluster;
- unsigned long value;
- unsigned char ret;
-
- for ( cou = 0 ; cou < maxcluster ; cou++ )
- {
- if ( cluster >= maxcluster )
- {
- cluster = 0;
- }
-
- ret = _f_getclustervalue( cluster, &value );
- if ( ret )
- {
- return ret;
- }
-
- if ( !value )
- {
- gl_volume.lastalloccluster = cluster + 1; /*set next one*/
- *pcluster = cluster;
-
- return F_NO_ERROR;
- }
-
- cluster++;
- }
-
- return F_ERR_NOMOREENTRY;
-} /* _f_alloccluster */
-
-
-
-
-/****************************************************************************
- *
- * _f_removechain
- *
- * remove cluster chain from fat
- *
- * INPUTS
- * cluster - first cluster in the cluster chain
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_removechain ( unsigned long cluster )
-{
- gl_volume.fatsector = (unsigned long)-1;
-
- if ( cluster < gl_volume.lastalloccluster ) /*this could be the begining of alloc*/
- {
- gl_volume.lastalloccluster = cluster;
- }
-
- while ( cluster < F_CLUSTER_RESERVED && cluster >= 2 )
- {
- unsigned long nextcluster;
-
- unsigned char ret = _f_getclustervalue( cluster, &nextcluster );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_setclustervalue( cluster, F_CLUSTER_FREE );
- if ( ret )
- {
- return ret;
- }
-
- cluster = nextcluster;
- }
-
- return _f_writefatsector();
-} /* _f_removechain */
-
-
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.h
deleted file mode 100644
index 8fb6e95f7..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/fat.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __FAT_H
-#define __FAT_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-unsigned char _f_getfatsector ( unsigned long );
-unsigned char _f_getclustervalue ( unsigned long, unsigned long * );
-void _f_clustertopos ( unsigned long, F_POS * );
-unsigned char _f_getcurrsector ( void );
-
-unsigned char _f_writefatsector ( void );
-unsigned char _f_setclustervalue ( unsigned long, unsigned long );
-unsigned char _f_alloccluster ( unsigned long * );
-unsigned char _f_removechain ( unsigned long );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __FAT_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.c
deleted file mode 100644
index 964b86c28..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.c
+++ /dev/null
@@ -1,1541 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-#include "../../psp/include/psp_string.h"
-
-#include "util.h"
-#include "volume.h"
-#include "drv.h"
-#include "fat.h"
-#include "dir.h"
-#include "file.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-static unsigned char _f_stepnextsector ( void );
-
-
-/****************************************************************************
- *
- * fn_filelength
- *
- * Get a file length
- *
- * INPUTS
- *
- * filename - file whose length is needed
- *
- * RETURNS
- *
- * length of the file
- *
- ***************************************************************************/
-
-long fn_filelength ( const char * filename )
-{
- F_POS pos;
- F_DIRENTRY * de;
- F_NAME fsname;
-
- if ( _f_setfsname( filename, &fsname ) )
- {
- return 0; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return 0; /*invalid name*/
- }
-
- if ( _f_getvolume() )
- {
- return 0; /*can't get the size*/
- }
-
- if ( !_f_findpath( &fsname, &pos ) )
- {
- return 0;
- }
-
- if ( !_f_findfilewc( fsname.filename, fsname.fileext, &pos, &de, 0 ) )
- {
- return 0;
- }
-
- if ( de->attr & F_ATTR_DIR )
- {
- return 0; /*directory*/
- }
-
- return (long)_f_getlong( &de->filesize );
-} /* fn_filelength */
-
-
-
-
-
-/****************************************************************************
- *
- * _f_emptywritebuffer
- *
- * empty write buffer if it contains unwritten data
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_stepnextsector ( void )
-{
- unsigned char ret;
- unsigned char b_alloc;
-
- b_alloc = 0;
- gl_volume.fatsector = (unsigned long)-1;
- if ( gl_file.startcluster == 0 )
- {
- b_alloc = 1;
- }
- else
- {
- ++gl_file.pos.sector;
- if ( gl_file.pos.sector >= gl_file.pos.sectorend )
- {
- unsigned long value;
-
- ret = _f_getclustervalue( gl_file.pos.cluster, &value );
- if ( ret )
- {
- return ret;
- }
-
- if ( ( value >= 2 ) && ( value < F_CLUSTER_RESERVED ) ) /*we are in chain*/
- {
- _f_clustertopos( value, &gl_file.pos ); /*go to next cluster*/
- }
- else
- {
- b_alloc = 1;
- }
- }
- }
-
- if ( b_alloc != 0 )
- {
- unsigned long nextcluster;
-
- ret = _f_alloccluster( &nextcluster );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_setclustervalue( nextcluster, F_CLUSTER_LAST );
- if ( ret )
- {
- return ret;
- }
-
- if ( gl_file.startcluster == 0 )
- {
- gl_file.startcluster = nextcluster;
- }
- else
- {
- ret = _f_setclustervalue( gl_file.pos.cluster, nextcluster );
- if ( ret )
- {
- return ret;
- }
- }
-
- _f_clustertopos( nextcluster, &gl_file.pos );
-
- return _f_writefatsector();
- }
-
- return F_NO_ERROR;
-} /* _f_stepnextsector */
-
-
-/****************************************************************************
- *
- * _f_extend
- *
- * Extend file to a certain size
- *
- ***************************************************************************/
-static unsigned char _f_extend ( long size )
-{
- unsigned long _size;
- unsigned char rc;
-
- size -= gl_file.filesize;
- _size = (unsigned long)size;
-
- if ( gl_file.startcluster == 0 )
- {
- if ( _f_stepnextsector() )
- {
- return F_ERR_WRITE;
- }
- }
- else
- {
- if ( ( gl_file.relpos > 0 ) && ( gl_file.relpos < F_SECTOR_SIZE ) )
- {
- rc = _f_getcurrsector();
- if ( rc )
- {
- return rc;
- }
- }
- }
-
- if ( gl_file.relpos + _size >= F_SECTOR_SIZE )
- {
- if ( gl_file.relpos < F_SECTOR_SIZE )
- {
- psp_memset( gl_sector + gl_file.relpos, 0, ( F_SECTOR_SIZE - gl_file.relpos ) );
- _size -= ( F_SECTOR_SIZE - gl_file.relpos );
-
- if ( _f_writeglsector( gl_file.pos.sector ) )
- {
- return F_ERR_WRITE;
- }
- }
-
- if ( _f_stepnextsector() )
- {
- return F_ERR_WRITE;
- }
-
- psp_memset( gl_sector, 0, F_SECTOR_SIZE );
-
- while ( _size >= F_SECTOR_SIZE )
- {
- if ( _f_writeglsector( gl_file.pos.sector ) )
- {
- return F_ERR_WRITE;
- }
-
- if ( _f_stepnextsector() )
- {
- return F_ERR_WRITE;
- }
-
- psp_memset( gl_sector, 0, F_SECTOR_SIZE );
-
- _size -= F_SECTOR_SIZE;
- }
- }
- else
- {
- psp_memset( gl_sector + gl_file.relpos, 0, ( F_SECTOR_SIZE - gl_file.relpos ) );
- _size += gl_file.relpos;
- }
-
- gl_file.modified = 1;
- gl_file.filesize += size;
- gl_file.abspos = gl_file.filesize & ( ~( F_SECTOR_SIZE - 1 ) );
- gl_file.relpos = _size;
-
- return F_NO_ERROR;
-} /* _f_extend */
-
-
-
-/****************************************************************************
- *
- * _f_fseek
- *
- * subfunction for f_seek it moves position into given offset and read
- * the current sector
- *
- * INPUTS
- * offset - position from start
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_fseek ( long offset )
-{
- unsigned long cluster;
- unsigned long tmp;
- unsigned char ret = F_NO_ERROR;
- long remain;
-
- if ( offset < 0 )
- {
- offset = 0;
- }
-
- if ( ( (unsigned long) offset <= gl_file.filesize )
- && ( (unsigned long) offset >= gl_file.abspos )
- && ( (unsigned long) offset < gl_file.abspos + F_SECTOR_SIZE ) )
- {
- gl_file.relpos = (unsigned short)( offset - gl_file.abspos );
- }
- else
- {
- if ( gl_file.modified )
- {
- ret = _f_writeglsector( (unsigned long)-1 );
- if ( ret )
- {
- gl_file.mode = F_FILE_CLOSE; /*cant accessed any more*/
- return ret;
- }
- }
-
- if ( gl_file.startcluster )
- {
- gl_file.abspos = 0;
- gl_file.relpos = 0;
- gl_file.pos.cluster = gl_file.startcluster;
- remain = gl_file.filesize;
-
- tmp = gl_volume.bootrecord.sector_per_cluster;
- tmp *= F_SECTOR_SIZE; /* set to cluster size */
-
- /*calc cluster*/
- gl_volume.fatsector = (unsigned long)-1;
- while ( (unsigned long)offset >= tmp )
- {
- ret = _f_getclustervalue( gl_file.pos.cluster, &cluster );
- if ( ret )
- {
- gl_file.mode = F_FILE_CLOSE;
- return ret;
- }
-
- if ( (long) tmp >= remain )
- {
- break;
- }
-
- remain -= tmp;
- offset -= tmp;
- gl_file.abspos += tmp;
- if ( cluster >= F_CLUSTER_RESERVED )
- {
- break;
- }
-
- gl_file.pos.cluster = cluster;
- }
-
- _f_clustertopos( gl_file.pos.cluster, &gl_file.pos );
- if ( remain && offset )
- {
- while ( ( offset > (long) F_SECTOR_SIZE )
- && ( remain > (long) F_SECTOR_SIZE ) )
- {
- gl_file.pos.sector++;
- offset -= F_SECTOR_SIZE;
- remain -= F_SECTOR_SIZE;
- gl_file.abspos += F_SECTOR_SIZE;
- }
- }
-
- if ( remain < offset )
- {
- gl_file.relpos = (unsigned short)remain;
- ret = _f_extend( gl_file.filesize + offset - remain );
- }
- else
- {
- gl_file.relpos = (unsigned short)offset;
- }
- }
- else
- {
- ret = _f_extend( offset );
- }
- }
-
- return ret;
-} /* _f_fseek */
-
-
-
-/****************************************************************************
- *
- * fn_open
- *
- * open a file for reading/writing/appending
- *
- * INPUTS
- *
- * filename - which file need to be opened
- * mode - string how to open ("r"-read, "w"-write, "w+"-overwrite, "a"-append
- *
- * RETURNS
- *
- * F_FILE pointer if successfully
- * 0 - if any error
- *
- ***************************************************************************/
-F_FILE * fn_open ( const char * filename, const char * mode )
-{
- F_DIRENTRY * de;
- F_NAME fsname;
- unsigned short date;
- unsigned short time;
- unsigned char m_mode = F_FILE_CLOSE;
-
- if ( mode[1] == 0 )
- {
- if ( mode[0] == 'r' )
- {
- m_mode = F_FILE_RD;
- }
-
- if ( mode[0] == 'w' )
- {
- m_mode = F_FILE_WR;
- }
-
- if ( mode[0] == 'a' )
- {
- m_mode = F_FILE_A;
- }
- }
-
- if ( ( mode[1] == '+' ) && ( mode[2] == 0 ) )
- {
- if ( mode[0] == 'r' )
- {
- m_mode = F_FILE_RDP;
- }
-
- if ( mode[0] == 'w' )
- {
- m_mode = F_FILE_WRP;
- }
-
- if ( mode[0] == 'a' )
- {
- m_mode = F_FILE_AP;
- }
-
- }
-
- if ( m_mode == F_FILE_CLOSE )
- {
- return 0; /*invalid mode*/
- }
-
- if ( _f_setfsname( filename, &fsname ) )
- {
- return 0; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return 0; /*invalid name*/
- }
-
- if ( fsname.filename[0] == '.' )
- {
- return 0;
- }
-
- if ( _f_getvolume() )
- {
- return 0; /*cant open any*/
- }
-
- if ( gl_file.mode != F_FILE_CLOSE )
- {
- return 0;
- }
-
- psp_memset( &gl_file, 0, sizeof( F_FILE ) );
-
- if ( !_f_findpath( &fsname, &gl_file.dirpos ) )
- {
- return 0;
- }
-
- switch ( m_mode )
- {
- case F_FILE_RDP: /*r*/
- case F_FILE_RD: /*r*/
- if ( !_f_findfilewc( fsname.filename, fsname.fileext, &gl_file.dirpos, &de, 0 ) )
- {
- return 0;
- }
-
- if ( de->attr & F_ATTR_DIR )
- {
- return 0; /*directory*/
- }
-
- gl_file.startcluster = _f_getdecluster( de );
-
- if ( gl_file.startcluster )
- {
- _f_clustertopos( gl_file.startcluster, &gl_file.pos );
- gl_file.filesize = _f_getlong( &de->filesize );
- gl_file.abspos = (unsigned long) (-1 * (long) F_SECTOR_SIZE);
- if ( _f_fseek( 0 ) )
- {
- return 0;
- }
- }
-
-#if F_FILE_CHANGED_EVENT
- if ( m_mode == F_FILE_RDP )
- {
- _f_createfullname( gl_file.filename, sizeof( gl_file.filename ), fsname.path, fsname.filename, fsname.fileext );
- }
-
-#endif
-
- break;
-
- case F_FILE_AP:
- case F_FILE_A: /*a*/
- psp_memcpy( &( gl_file.pos ), &( gl_file.dirpos ), sizeof( F_POS ) );
- if ( _f_findfilewc( fsname.filename, fsname.fileext, &gl_file.dirpos, &de, 0 ) )
- {
- if ( de->attr & ( F_ATTR_DIR | F_ATTR_READONLY ) )
- {
- return 0;
- }
-
- gl_file.startcluster = _f_getdecluster( de );
- gl_file.filesize = _f_getlong( &de->filesize );
-
- if ( gl_file.startcluster )
- {
- _f_clustertopos( gl_file.startcluster, &gl_file.pos );
- gl_file.abspos = (unsigned long) (-1 * (long) F_SECTOR_SIZE); /*forcing seek to read 1st sector! abspos=0;*/
- if ( _f_fseek( (long)gl_file.filesize ) )
- {
- gl_file.mode = F_FILE_CLOSE;
- return 0;
- }
- }
- }
- else
- {
- psp_memcpy( &( gl_file.dirpos ), &( gl_file.pos ), sizeof( F_POS ) );
- _f_clustertopos( gl_file.dirpos.cluster, &gl_file.pos );
-
- if ( _f_addentry( &fsname, &gl_file.dirpos, &de ) )
- {
- return 0; /*couldnt be added*/
- }
-
- de->attr |= F_ATTR_ARC; /*set as archiv*/
- if ( _f_writeglsector( (unsigned long)-1 ) )
- {
- return 0;
- }
- }
-
- #if F_FILE_CHANGED_EVENT
- _f_createfullname( gl_file.filename, sizeof( gl_file.filename ), fsname.path, fsname.filename, fsname.fileext );
- #endif
- break;
-
-
- case F_FILE_WR: /*w*/
- case F_FILE_WRP: /*w+*/
- _f_clustertopos( gl_file.dirpos.cluster, &gl_file.pos );
- if ( _f_findfilewc( fsname.filename, fsname.fileext, &gl_file.pos, &de, 0 ) )
- {
- unsigned long cluster = _f_getdecluster( de ); /*exist*/
-
- if ( de->attr & ( F_ATTR_DIR | F_ATTR_READONLY ) )
- {
- return 0;
- }
-
- psp_memcpy( &( gl_file.dirpos ), &( gl_file.pos ), sizeof( F_POS ) );
-
- _f_setlong( de->filesize, 0 ); /*reset size;*/
- de->attr |= F_ATTR_ARC; /*set as archiv*/
- _f_setword( de->clusterlo, 0 ); /*no points anywhere*/
- _f_setword( de->clusterhi, 0 );
-
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- f_igettimedate( &time, &date );
- _f_setword( &de->crtdate, date ); /*if there is realtime clock then creation date could be set from*/
- _f_setword( &de->crttime, time ); /*if there is realtime clock then creation time could be set from*/
- _f_setword( &de->lastaccessdate, date ); /*if there is realtime clock then creation date could be set from*/
- }
-
- if ( _f_writeglsector( (unsigned long)-1 ) )
- {
- return 0;
- }
-
- if ( _f_removechain( cluster ) )
- {
- return 0; /*remove */
- }
- }
- else
- {
- if ( _f_addentry( &fsname, &gl_file.dirpos, &de ) )
- {
- return 0; /*couldnt be added*/
- }
-
- psp_memset( &gl_file, 0, 21 );
- de->attr |= F_ATTR_ARC; /*set as archiv*/
- if ( _f_writeglsector( (unsigned long)-1 ) )
- {
- return 0;
- }
- }
-
- #if F_FILE_CHANGED_EVENT
- _f_createfullname( gl_file.filename, sizeof( gl_file.filename ), fsname.path, fsname.filename, fsname.fileext );
- #endif
-
- break;
-
- default:
- return 0; /*invalid mode*/
- } /* switch */
-
- gl_file.mode = m_mode; /* lock it */
- return (F_FILE *)1;
-} /* fn_open */
-
-
-/****************************************************************************
- * _f_updatefileentry
- * Updated a file directory entry or removes the entry
- * and the fat chain belonging to it.
- ***************************************************************************/
-static unsigned char _f_updatefileentry ( int remove )
-{
- F_DIRENTRY * de;
- unsigned short date;
- unsigned short time;
-
- de = (F_DIRENTRY *)( gl_sector + sizeof( F_DIRENTRY ) * gl_file.dirpos.pos );
- if ( _f_readglsector( gl_file.dirpos.sector ) || remove )
- {
- _f_setdecluster( de, 0 );
- _f_setlong( &de->filesize, 0 );
- (void)_f_writeglsector( (unsigned long)-1 );
- (void)_f_removechain( gl_file.startcluster );
- return F_ERR_WRITE;
- }
-
- _f_setdecluster( de, gl_file.startcluster );
- _f_setlong( &de->filesize, gl_file.filesize );
- f_igettimedate( &time, &date );
- _f_setword( &de->cdate, date ); /*if there is realtime clock then creation date could be set from*/
- _f_setword( &de->ctime, time ); /*if there is realtime clock then creation time could be set from*/
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- _f_setword( &de->lastaccessdate, date ); /*if there is realtime clock then creation date could be set from*/
- }
-
- return _f_writeglsector( (unsigned long)-1 );
-} /* _f_updatefileentry */
-
-
-/****************************************************************************
- *
- * fn_close
- *
- * close a previously opened file
- *
- * INPUTS
- *
- * filehandle - which file needs to be closed
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_close ( F_FILE * f )
-{
- unsigned char ret;
-
-#if F_FILE_CHANGED_EVENT
- unsigned char mode;
-#endif
-
- if ( !f )
- {
- return F_ERR_NOTOPEN;
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( gl_file.mode == F_FILE_CLOSE )
- {
- return F_ERR_NOTOPEN;
- }
-
- else if ( gl_file.mode == F_FILE_RD )
- {
- gl_file.mode = F_FILE_CLOSE;
- return F_NO_ERROR;
- }
- else
- {
- #if F_FILE_CHANGED_EVENT
- mode = f->mode;
- #endif
- gl_file.mode = F_FILE_CLOSE;
-
- if ( gl_file.modified )
- {
- if ( _f_writeglsector( (unsigned long)-1 ) )
- {
- (void)_f_updatefileentry( 1 );
- return F_ERR_WRITE;
- }
- }
-
- ret = _f_updatefileentry( 0 );
-
- #if F_FILE_CHANGED_EVENT
- if ( f_filechangedevent && !ret )
- {
- ST_FILE_CHANGED fc;
- if ( ( mode == F_FILE_WR ) || ( mode == F_FILE_WRP ) )
- {
- fc.action = FACTION_ADDED;
- fc.flags = FFLAGS_FILE_NAME;
- }
- else if ( ( mode == F_FILE_A ) || ( mode == F_FILE_RDP ) )
- {
- fc.action = FACTION_MODIFIED;
- fc.flags = FFLAGS_FILE_NAME | FFLAGS_SIZE;
- }
-
- strcpy( fc.filename, f->filename );
- if ( f->filename[0] )
- {
- f_filechangedevent( &fc );
- }
-
- f->filename[0] = '\0';
- }
-
- #endif /* if F_FILE_CHANGED_EVENT */
- return ret;
- }
-} /* fn_close */
-
-
-/****************************************************************************
- *
- * fn_flush
- *
- * flush a previously opened file
- *
- * INPUTS
- *
- * filehandle - which file needs to be closed
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_flush ( F_FILE * f )
-{
- unsigned char ret;
-
- if ( !f )
- {
- return F_ERR_NOTOPEN;
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( gl_file.mode == F_FILE_CLOSE )
- {
- return F_ERR_NOTOPEN;
- }
- else if ( gl_file.mode != F_FILE_RD )
- {
- if ( gl_file.modified )
- {
- if ( _f_writeglsector( (unsigned long)-1 ) )
- {
- (void)_f_updatefileentry( 1 );
- return F_ERR_WRITE;
- }
- }
-
- return _f_updatefileentry( 0 );
- }
-
- return F_NO_ERROR;
-} /* fn_flush */
-
-
-/****************************************************************************
- *
- * fn_read
- *
- * read data from file
- *
- * INPUTS
- *
- * buf - where the store data
- * size - size of items to be read
- * _size_t - number of items need to be read
- * filehandle - file where to read from
- *
- * RETURNS
- *
- * with the number of read bytes
- *
- ***************************************************************************/
-long fn_read ( void * buf, long size, long _size_st, F_FILE * f )
-{
- char * buffer = (char *)buf;
- long retsize;
-
- if ( !f )
- {
- return 0;
- }
-
- if ( ( gl_file.mode & ( F_FILE_RD | F_FILE_RDP | F_FILE_WRP | F_FILE_AP ) ) == 0 )
- {
- return 0;
- }
-
- retsize = size;
- size *= _size_st;
- _size_st = retsize;
- retsize = 0;
-
- if ( _f_getvolume() )
- {
- return 0; /*cant read any*/
- }
-
- if ( size + gl_file.relpos + gl_file.abspos >= gl_file.filesize ) /*read len longer than the file*/
- {
- size = (long)( ( gl_file.filesize ) - ( gl_file.relpos ) - ( gl_file.abspos ) ); /*calculate new size*/
- }
-
- if ( size <= 0 )
- {
- return 0;
- }
-
- if ( _f_getcurrsector() )
- {
- gl_file.mode = F_FILE_CLOSE; /*no more read allowed*/
- return 0;
- }
-
- for( ; ; )
- {
- unsigned long rdsize = (unsigned long)size;
-
- if ( gl_file.relpos == F_SECTOR_SIZE )
- {
- unsigned char ret;
-
- gl_file.abspos += gl_file.relpos;
- gl_file.relpos = 0;
-
- if ( gl_file.modified )
- {
- ret = _f_writeglsector( (unsigned long)-1 ); /*empty write buffer */
- if ( ret )
- {
- gl_file.mode = F_FILE_CLOSE; /*no more read allowed*/
- return retsize;
- }
- }
-
- gl_file.pos.sector++; /*goto next*/
-
- ret = _f_getcurrsector();
- if ( ( ret == F_ERR_EOF ) && ( !size ) )
- {
- return retsize;
- }
-
- if ( ret )
- {
- gl_file.mode = F_FILE_CLOSE; /*no more read allowed*/
- return retsize;
- }
- }
-
- if ( !size )
- {
- break;
- }
-
- if ( rdsize >= F_SECTOR_SIZE - gl_file.relpos )
- {
- rdsize = (unsigned long)( F_SECTOR_SIZE - gl_file.relpos );
- }
-
- psp_memcpy( buffer, gl_sector + gl_file.relpos, rdsize ); /*always less than 512*/
-
- buffer += rdsize;
- gl_file.relpos += rdsize;
- size -= rdsize;
- retsize += rdsize;
- }
-
- return retsize / _size_st;
-} /* fn_read */
-
-
-/****************************************************************************
- *
- * fn_write
- *
- * write data into file
- *
- * INPUTS
- *
- * buf - where the store data
- * size - size of items to be read
- * size_t - number of items need to be read
- * filehandle - file where to read from
- *
- * RETURNS
- *
- * with the number of read bytes
- *
- ***************************************************************************/
-
-long fn_write ( const void * buf, long size, long _size_st, F_FILE * f )
-{
- char * buffer = (char *)buf;
- long retsize;
- long ret = 0;
-
- if ( !f )
- {
- return 0;
- }
-
- if ( ( gl_file.mode & ( F_FILE_WR | F_FILE_A | F_FILE_RDP | F_FILE_WRP | F_FILE_AP ) ) == 0 )
- {
- return 0;
- }
-
- retsize = size;
- size *= _size_st;
- _size_st = retsize;
- retsize = 0;
-
- if ( size == 0 )
- {
- return 0;
- }
-
- if ( _f_getvolume() )
- {
- return 0; /*can't write*/
- }
-
- if ( ( gl_file.mode ) & ( F_FILE_A | F_FILE_AP ) )
- {
- if ( _f_fseek( (long)gl_file.filesize ) )
- {
- gl_file.mode = F_FILE_CLOSE;
- return 0;
- }
- }
-
- if ( gl_file.startcluster == 0 )
- {
- if ( _f_stepnextsector() )
- {
- gl_file.mode = F_FILE_CLOSE;
- return 0;
- }
- }
- else
- {
- if ( _f_getcurrsector() )
- {
- gl_file.mode = F_FILE_CLOSE;
- return 0;
- }
- }
-
- for( ; ; )
- {
- unsigned long wrsize = (unsigned long)size;
-
- if ( gl_file.relpos == F_SECTOR_SIZE )
- { /*now full*/
- if ( gl_file.modified )
- {
- if ( _f_writeglsector( gl_file.pos.sector ) )
- {
- gl_file.mode = F_FILE_CLOSE;
- if ( _f_updatefileentry( 0 ) == 0 )
- {
- return retsize;
- }
- else
- {
- return 0;
- }
- }
-
- gl_file.modified = 0;
- }
-
- if ( _f_stepnextsector() )
- {
- gl_file.mode = F_FILE_CLOSE;
- if ( _f_updatefileentry( 0 ) == 0 )
- {
- return retsize;
- }
- else
- {
- return 0;
- }
- }
-
- gl_file.abspos += gl_file.relpos;
- gl_file.relpos = 0;
-
- if ( wrsize && ( wrsize < F_SECTOR_SIZE ) )
- {
- ret = _f_getcurrsector();
-
- if ( ret )
- {
- if ( ret != F_ERR_EOF )
- {
- gl_file.mode = F_FILE_CLOSE; /*no more read allowed*/
- return retsize;
- }
- }
- }
- }
-
- if ( !size )
- {
- break;
- }
-
- if ( wrsize >= F_SECTOR_SIZE - gl_file.relpos )
- {
- wrsize = (unsigned long)( F_SECTOR_SIZE - gl_file.relpos );
- }
-
-
- psp_memcpy( gl_sector + gl_file.relpos, buffer, wrsize );
- gl_file.modified = 1; /*sector is modified*/
-
- buffer += wrsize;
- gl_file.relpos += wrsize;
- size -= wrsize;
- retsize += wrsize;
-
- if ( gl_file.filesize < gl_file.abspos + gl_file.relpos )
- {
- gl_file.filesize = gl_file.abspos + gl_file.relpos;
- }
- }
-
- return retsize / _size_st;
-} /* fn_write */
-
-
-
-/****************************************************************************
- *
- * fn_seek
- *
- * moves position into given offset in given file
- *
- * INPUTS
- *
- * filehandle - F_FILE structure which file position needed to be modified
- * offset - relative position
- * whence - where to calculate position (F_SEEK_SET,F_SEEK_CUR,F_SEEK_END)
- *
- * RETURNS
- *
- * 0 - if successfully
- * other - if any error
- *
- ***************************************************************************/
-
-
-unsigned char fn_seek ( F_FILE * f, long offset, unsigned char whence )
-{
- unsigned char ret;
-
- if ( !f )
- {
- return F_ERR_NOTOPEN;
- }
-
- if ( ( gl_file.mode & ( F_FILE_RD | F_FILE_WR | F_FILE_A | F_FILE_RDP | F_FILE_WRP | F_FILE_AP ) ) == 0 )
- {
- return F_ERR_NOTOPEN;
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( whence == F_SEEK_CUR )
- {
- return _f_fseek( (long)( gl_file.abspos + gl_file.relpos + offset ) );
- }
- else if ( whence == F_SEEK_END )
- {
- return _f_fseek( (long)( gl_file.filesize + offset ) );
- }
- else if ( whence == F_SEEK_SET )
- {
- return _f_fseek( offset );
- }
-
- return F_ERR_NOTUSEABLE;
-} /* fn_seek */
-
-
-
-/****************************************************************************
- *
- * fn_tell
- *
- * Tells the current position of opened file
- *
- * INPUTS
- *
- * filehandle - which file needs the position
- *
- * RETURNS
- *
- * position in the file from start
- *
- ***************************************************************************/
-
-long fn_tell ( F_FILE * f )
-{
- if ( !f )
- {
- return 0;
- }
-
- if ( ( gl_file.mode & ( F_FILE_RD | F_FILE_WR | F_FILE_A | F_FILE_RDP | F_FILE_WRP | F_FILE_AP ) ) == 0 )
- {
- return 0;
- }
-
- return (long)( gl_file.abspos + gl_file.relpos );
-}
-
-
-
-/****************************************************************************
- *
- * fn_eof
- *
- * Tells if the current position is end of file or not
- *
- * INPUTS
- *
- * filehandle - which file needs the checking
- *
- * RETURNS
- *
- * 0 - if not EOF
- * other - if EOF or invalid file handle
- *
- ***************************************************************************/
-
-unsigned char fn_eof ( F_FILE * f )
-{
- if ( !f )
- {
- return F_ERR_NOTOPEN; /*if error*/
- }
-
- if ( gl_file.abspos + gl_file.relpos < gl_file.filesize )
- {
- return 0;
- }
-
- return F_ERR_EOF; /*EOF*/
-}
-
-
-
-
-/****************************************************************************
- *
- * fn_rewind
- *
- * set the fileposition in the opened file to the begining
- *
- * INPUTS
- *
- * filehandle - which file needs to be rewinded
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-
-unsigned char fn_rewind ( F_FILE * filehandle )
-{
- return fn_seek( filehandle, 0L, F_SEEK_SET );
-}
-
-
-
-/****************************************************************************
- *
- * fn_putc
- *
- * write a character into file
- *
- * INPUTS
- *
- * ch - what to write into file
- * filehandle - file where to write
- *
- * RETURNS
- *
- * with the number of written bytes (1-success, 0-not successfully)
- *
- ***************************************************************************/
-
-int fn_putc ( int ch, F_FILE * filehandle )
-{
- unsigned char tmpch = (unsigned char)ch;
-
- if ( fn_write( &tmpch, 1, 1, filehandle ) )
- {
- return ch;
- }
- else
- {
- return -1;
- }
-}
-
-
-
-/****************************************************************************
- *
- * fn_getc
- *
- * get a character from file
- *
- * INPUTS
- *
- * filehandle - file where to read from
- *
- * RETURNS
- *
- * with the read character or -1 if read was not successfully
- *
- ***************************************************************************/
-int fn_getc ( F_FILE * filehandle )
-{
- unsigned char ch;
-
- if ( !fn_read( &ch, 1, 1, filehandle ) )
- {
- return -1;
- }
-
- return (int)ch;
-}
-
-
-
-/****************************************************************************
- *
- * fn_delete
- *
- * delete a file
- *
- * INPUTS
- *
- * filename - file which wanted to be deleted (with or without path)
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_delete ( const char * filename )
-{
- F_POS pos;
- F_DIRENTRY * de;
- F_NAME fsname;
- unsigned char ret;
-
- if ( _f_setfsname( filename, &fsname ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( _f_checknamewc( fsname.filename, fsname.fileext ) )
- {
- return F_ERR_INVALIDNAME; /*invalid name*/
- }
-
- if ( fsname.filename[0] == '.' )
- {
- return F_ERR_NOTFOUND;
- }
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- if ( !( _f_findpath( &fsname, &pos ) ) )
- {
- return F_ERR_INVALIDDIR;
- }
-
- if ( !_f_findfilewc( fsname.filename, fsname.fileext, &pos, &de, 0 ) )
- {
- return F_ERR_NOTFOUND;
- }
-
- if ( de->attr & F_ATTR_DIR )
- {
- return F_ERR_INVALIDDIR; /*directory*/
- }
-
- if ( de->attr & F_ATTR_READONLY )
- {
- return F_ERR_ACCESSDENIED; /*readonly*/
- }
-
- if ( ( gl_file.mode != F_FILE_CLOSE ) && ( gl_file.dirpos.sector == pos.sector ) && ( gl_file.dirpos.pos == pos.pos ) )
- {
- return F_ERR_LOCKED;
- }
-
- de->name[0] = (unsigned char)0xe5; /*removes it*/
- ret = _f_writeglsector( (unsigned long)-1 );
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_removechain( _f_getdecluster( de ) );
-
- #if F_FILE_CHANGED_EVENT
- if ( f_filechangedevent && !ret )
- {
- ST_FILE_CHANGED fc;
- fc.action = FACTION_REMOVED;
- fc.flags = FFLAGS_FILE_NAME;
-
- if ( !_f_createfullname( fc.filename, sizeof( fc.filename ), fsname.path, fsname.filename, fsname.fileext ) )
- {
- f_filechangedevent( &fc );
- }
- }
-
- #endif
-
- return ret;
-} /* fn_delete */
-
-
-
-
-/****************************************************************************
- *
- * _f_seteof
- *
- * Set end of file
- *
- * INPUT: f - file pointer
- * filesize - required new size
- * RETURN: F_NO_ERROR - on success
- * other if error
- *
- ***************************************************************************/
-unsigned char _f_seteof ( F_FILE * f, long filesize )
-{
- unsigned char rc = F_NO_ERROR;
-
- if ( !f )
- {
- return F_ERR_NOTOPEN; /*if error*/
- }
-
- if ( ( unsigned long) filesize < gl_file.filesize )
- {
- rc = _f_fseek( filesize );
- if ( rc == F_NO_ERROR )
- {
- unsigned long cluster;
- rc = _f_getclustervalue( gl_file.pos.cluster, &cluster );
- if ( rc == F_NO_ERROR )
- {
- if ( cluster != F_CLUSTER_LAST )
- {
- rc = _f_removechain( cluster );
- if ( rc )
- {
- return rc;
- }
-
- rc = _f_setclustervalue( gl_file.pos.cluster, F_CLUSTER_LAST );
- if ( rc )
- {
- return rc;
- }
-
- rc = _f_writefatsector();
- if ( rc )
- {
- return rc;
- }
- }
-
- gl_file.filesize = (unsigned long)filesize;
- }
- }
- }
- else if ( (unsigned long) filesize > gl_file.filesize )
- {
- rc = _f_fseek( filesize );
- }
-
- return rc;
-} /* _f_seteof */
-
-
-/****************************************************************************
- *
- * fn_seteof
- *
- * Set end of file
- *
- * INPUT: f - file pointer
- * filesize - required new size
- * RETURN: F_NO_ERROR - on success
- * other if error
- *
- ***************************************************************************/
-unsigned char fn_seteof ( F_FILE * f )
-{
- unsigned char rc = F_NO_ERROR;
-
- rc = _f_seteof( f, ( gl_file.abspos + gl_file.relpos ) );
-
- return rc;
-} /* fn_seteof */
-
-
-
-
-/****************************************************************************
- *
- * fn_truncate
- *
- * Open a file and set end of file
- *
- * INPUT: filename - name of the file
- * filesize - required new size
- * RETURN: NULL on error, otherwise file pointer
- *
- ***************************************************************************/
-F_FILE * fn_truncate ( const char * filename, long filesize )
-{
- F_FILE * f = fn_open( filename, "r+" );
- unsigned char rc;
-
- if ( f != NULL )
- {
- rc = _f_fseek( (long)gl_file.filesize );
- if ( rc == F_NO_ERROR )
- {
- rc = _f_seteof( f, filesize );
- }
-
- if ( rc )
- {
- fn_close( f );
- f = NULL;
- }
- }
-
- return f;
-} /* fn_truncate */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.h
deleted file mode 100644
index b56093f7c..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/file.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __FILE_H
-#define __FILE_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#define F_FILE_CLOSE 0x00
-#define F_FILE_RD 0x01
-#define F_FILE_WR 0x02
-#define F_FILE_A 0x04
-#define F_FILE_RDP 0x08
-#define F_FILE_WRP 0x10
-#define F_FILE_AP 0x20
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __FILE_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.c
deleted file mode 100644
index 59842a85c..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.c
+++ /dev/null
@@ -1,322 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-#include "../../psp/include/psp_rtc.h"
-#include "dir.h"
-
-#include "util.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-
-/****************************************************************************
- *
- * _f_getword
- *
- * get a word 16bit number from a memory (it uses LITTLE ENDIAN mode always)
- *
- * INPUTS
- *
- * ptr - pointer where data is
- *
- * RETURNS
- *
- * word number
- *
- ***************************************************************************/
-unsigned short _f_getword ( void * ptr )
-{
- unsigned char * sptr = (unsigned char *)ptr;
- unsigned short ret;
-
- ret = (unsigned short)( sptr[1] & 0xff );
- ret <<= 8;
- ret |= ( sptr[0] & 0xff );
- return ret;
-}
-
-
-/****************************************************************************
- *
- * _f_setword
- *
- * set a word 16bit number into a memory (it uses LITTLE ENDIAN mode always)
- *
- * INPUTS
- *
- * ptr - where to store data
- * num - 16 bit number to store
- *
- ***************************************************************************/
-void _f_setword ( void * ptr, unsigned short num )
-{
- unsigned char * sptr = (unsigned char *)ptr;
-
- sptr[1] = (unsigned char)( num >> 8 );
- sptr[0] = (unsigned char)( num );
-}
-
-
-/****************************************************************************
- *
- * _f_getlong
- *
- * get a long 32bit number from a memory (it uses LITTLE ENDIAN mode always)
- *
- * INPUTS
- *
- * ptr - pointer where data is
- *
- * RETURNS
- *
- * long number
- *
- ***************************************************************************/
-unsigned long _f_getlong ( void * ptr )
-{
- unsigned char * sptr = (unsigned char *)ptr;
- unsigned long ret;
-
- ret = (unsigned long)( sptr[3] & 0xff );
- ret <<= 8;
- ret |= ( sptr[2] & 0xff );
- ret <<= 8;
- ret |= ( sptr[1] & 0xff );
- ret <<= 8;
- ret |= ( sptr[0] & 0xff );
- return ret;
-}
-
-
-/****************************************************************************
- *
- * _f_setlong
- *
- * set a long 32bit number into a memory (it uses LITTLE ENDIAN mode always)
- *
- * INPUTS
- *
- * ptr - where to store data
- * num - 32 bit number to store
- *
- ***************************************************************************/
-void _f_setlong ( void * ptr, unsigned long num )
-{
- unsigned char * sptr = (unsigned char *)ptr;
-
- sptr[3] = (unsigned char)( num >> 24 );
- sptr[2] = (unsigned char)( num >> 16 );
- sptr[1] = (unsigned char)( num >> 8 );
- sptr[0] = (unsigned char)( num );
-}
-
-
-/****************************************************************************
- *
- * _setcharzero
- *
- * fills with zero charater to memory
- *
- * INPUTS
- *
- * num - number of characters
- * ptr - where to store data
- *
- * RETURNS
- *
- * last write position
- *
- ***************************************************************************/
-unsigned char * _setcharzero ( int num, unsigned char * ptr )
-{
- while ( num-- )
- {
- *ptr++ = 0;
- }
-
- return ptr;
-}
-
-
-/****************************************************************************
- *
- * _setchar
- *
- * copy a charater string to memory
- *
- * INPUTS
- *
- * array - original code what to copy
- * num - number of characters
- * ptr - where to store data
- *
- * RETURNS
- *
- * last write position
- *
- ***************************************************************************/
-unsigned char * _setchar ( const unsigned char * array, int num, unsigned char * ptr )
-{
- if ( !array )
- {
- return _setcharzero( num, ptr );
- }
-
- while ( num-- )
- {
- *ptr++ = *array++;
- }
-
- return ptr;
-}
-
-
-/****************************************************************************
- *
- * _setword
- *
- * store a 16bit word into memory
- *
- * INPUTS
- *
- * num - 16bit number to store
- * ptr - where to store data
- *
- * RETURNS
- *
- * last write position
- *
- ***************************************************************************/
-unsigned char * _setword ( unsigned short num, unsigned char * ptr )
-{
- _f_setword( ptr, num );
- return ptr + 2;
-}
-
-
-/****************************************************************************
- *
- * _setlong
- *
- * store a 32bit long number into memory
- *
- * INPUTS
- *
- * num - 32bit number to store
- * ptr - where to store data
- *
- * RETURNS
- *
- * last write position
- *
- ***************************************************************************/
-unsigned char * _setlong ( unsigned long num, unsigned char * ptr )
-{
- _f_setlong( ptr, num );
- return ptr + 4;
-}
-
-
-/****************************************************************************
- *
- * _f_toupper
- *
- * convert a string into lower case
- *
- * INPUTS
- *
- * s - input string to convert
- *
- ***************************************************************************/
-char _f_toupper ( char ch )
-{
- if ( ( ch >= 'a' ) && ( ch <= 'z' ) )
- {
- return (char)( ch - 'a' + 'A' );
- }
-
- return ch;
-}
-
-
-/****************************************************************************
- *
- * f_igettimedate
- *
- * INPUTS
- * time - pointer to time variable
- * date - pointer to date variable
- * OUTPUTS
- * time - current time
- * date - current date
- *
- * RETURNS
- * none
- *
- ***************************************************************************/
-void f_igettimedate ( unsigned short * time, unsigned short * date )
-{
- t_psp_timedate s_timedate;
-
- psp_getcurrenttimedate( &s_timedate );
-
- *time = ( ( (uint16_t)s_timedate.hour << F_CTIME_HOUR_SHIFT ) & F_CTIME_HOUR_MASK )
- | ( ( (uint16_t)s_timedate.min << F_CTIME_MIN_SHIFT ) & F_CTIME_MIN_MASK )
- | ( ( ( (uint16_t)s_timedate.sec >> 1 ) << F_CTIME_SEC_SHIFT ) & F_CTIME_SEC_MASK );
-
- *date = ( ( ( s_timedate.year - 1980 ) << F_CDATE_YEAR_SHIFT ) & F_CDATE_YEAR_MASK )
- | ( ( (uint16_t)s_timedate.month << F_CDATE_MONTH_SHIFT ) & F_CDATE_MONTH_MASK )
- | ( ( (uint16_t)s_timedate.day << F_CDATE_DAY_SHIFT ) & F_CDATE_DAY_MASK );
-
- return;
-}
-
-
-
-
-
-
-
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.h
deleted file mode 100644
index 2dfd8ac98..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __UTIL_H
-#define __UTIL_H
-
-#include "util_sfn.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void f_igettimedate ( unsigned short * time, unsigned short * date );
-
-unsigned short _f_getword ( void * );
-unsigned long _f_getlong ( void * );
-char _f_toupper ( char );
-void _f_memset ( void *, unsigned char, int );
-void _f_memcpy ( void *, void *, int );
-
-void _f_setword ( void *, unsigned short );
-void _f_setlong ( void *, unsigned long );
-unsigned char * _setcharzero ( int, unsigned char * );
-unsigned char * _setchar ( const unsigned char *, int, unsigned char * );
-unsigned char * _setword ( unsigned short, unsigned char * );
-unsigned char * _setlong ( unsigned long, unsigned char * );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __UTIL_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.c
deleted file mode 100644
index 0ec64bbe4..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.c
+++ /dev/null
@@ -1,542 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-
-#include "util.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-
-
-/****************************************************************************
- *
- * _f_checknameprim
- *
- * checking a string if could be valid
- *
- * INPUTS
- *
- * ptr - pointer to name or extension
- * len - number max char of name or extension
- *
- * RETURNS
- *
- ***************************************************************************/
-static unsigned char _f_checknameprim ( char * ptr, unsigned char len )
-{
- unsigned char inspace = 0;
-
- while ( len-- )
- {
- char ch = *ptr++;
- if ( !inspace )
- {
- if ( ch == ' ' )
- {
- inspace = 1;
- }
-
- if ( ( ch == '|' ) || ( ch == '[' ) || ( ch == ']' ) || ( ch == '<' ) || ( ch == '>' ) || ( ch == '/' ) || ( ch == '\\' ) || ( ch == ':' ) )
- {
- return 1;
- }
- }
- else if ( ch != ' ' )
- {
- return 1; /*no inspace allowed*/
- }
- }
-
- return 0;
-} /* _f_checknameprim */
-
-
-/****************************************************************************
- *
- * _f_checkname
- *
- * checking filename and extension for special characters
- *
- * INPUTS
- *
- * name - filename (e.g.: filename)
- * ext - extension of file (e.g.: txt)
- *
- * RETURNS
- *
- * 0 - if no contains invalid character
- * other - if contains any invalid character
- *
- ***************************************************************************/
-unsigned char _f_checkname ( char * name, char * ext )
-{
- if ( _f_checknameprim( name, F_MAXNAME ) )
- {
- return 1;
- }
-
- if ( _f_checknameprim( ext, F_MAXEXT ) )
- {
- return 1;
- }
-
- return 0;
-}
-
-
-/****************************************************************************
- *
- * _f_checknamewc
- *
- * checking filename and extension for wildcard character
- *
- * INPUTS
- *
- * name - filename (e.g.: filename)
- * ext - extension of file (e.g.: txt)
- *
- * RETURNS
- *
- * 0 - if no contains wildcard character (? or *)
- * other - if contains any wildcard character
- *
- ***************************************************************************/
-unsigned char _f_checknamewc ( const char * name, const char * ext )
-{
- unsigned char a = 0;
-
- for ( a = 0 ; a < F_MAXNAME ; a++ )
- {
- char ch = name[a];
- if ( ( ch == '?' ) || ( ch == '*' ) )
- {
- return 1;
- }
- }
-
- for ( a = 0 ; a < F_MAXEXT ; a++ )
- {
- char ch = ext[a];
- if ( ( ch == '?' ) || ( ch == '*' ) )
- {
- return 1;
- }
- }
-
- return _f_checkname( (char *)name, (char *)ext );
-} /* _f_checknamewc */
-
-
-
-
-/****************************************************************************
- *
- * _f_setnameext
- *
- * convert a string into filename and extension separatelly, the terminator
- * character could be zero char, '/' or '\'
- *
- * INPUTS
- *
- * s - source string (e.g.: hello.txt)
- * name - where to store name (this array size has to be F_MAXNAME (8))
- * ext - where to store extension (this array size has to be F_MAXEXT (3))
- *
- * RETURNS
- *
- * length of the used bytes from source string array
- *
- ***************************************************************************/
-unsigned char _f_setnameext ( char * s, char * name, char * ext )
-{
- unsigned char len, extlen = 0;
- unsigned char a;
- unsigned char setext = 1;
-
- for ( len = 0 ; ; )
- {
- unsigned char ch = s[len];
- if ( ( ch == 0 ) || ( ch == '\\' ) || ( ch == '/' ) )
- {
- break;
- }
-
- len++; /*calculate len*/
- }
-
- if ( len && ( s[0] == '.' ) )
- {
-/* if (len==1 || (s[1]=='.' && len==2)) goto dots; */
- if ( ( len == 1 ) || ( s[1] == '.' ) )
- {
- goto dots;
- }
- }
-
- for ( a = len ; a ; a-- )
- {
- if ( s[a - 1] == '.' )
- {
- unsigned char b;
-
- extlen = (unsigned char)( len - a + 1 );
- len = (unsigned char)( a - 1 );
-
- for ( b = 0 ; b < F_MAXEXT ; b++ )
- {
- if ( b < extlen - 1 )
- {
- ext[b] = _f_toupper( s[a++] );
- }
- else
- {
- ext[b] = ' ';
- }
- }
-
- setext = 0;
- break;
- }
- }
-
-dots:
- if ( setext )
- {
- for ( a = 0 ; a < F_MAXEXT ; a++ )
- {
- ext[a] = ' ';
- }
- }
-
- for ( a = 0 ; a < F_MAXNAME ; a++ )
- {
- if ( a < len )
- {
- name[a] = _f_toupper( s[a] );
- }
- else
- {
- name[a] = ' ';
- }
- }
-
- return (unsigned char)( len + extlen );
-} /* _f_setnameext */
-
-
-
-/****************************************************************************
- *
- * _f_setfsname
- *
- * convert a single string into F_NAME structure
- *
- * INPUTS
- *
- * name - combined name with drive,path,filename,extension used for source
- * fsname - where to fill this structure with separated drive,path,name,ext
- *
- * RETURNS
- *
- * 0 - if successfully
- * other - if name contains invalid path or name
- *
- ***************************************************************************/
-unsigned char _f_setfsname ( const char * name, F_NAME * fsname )
-{
- char s[F_MAXPATH];
- unsigned char namepos = 0;
-
- unsigned char pathpos = 0;
- unsigned char a;
-
- s[0] = 0;
-
- if ( !name[0] )
- {
- return 1; /*no name*/
- }
-
- if ( name[1] == ':' )
- {
- name += 2;
- }
-
- if ( ( name[0] != '/' ) && ( name[0] != '\\' ) )
- {
- if ( fn_getcwd( fsname->path, F_MAXPATH, 0 ) )
- {
- return 1; /*error*/
- }
-
- for ( pathpos = 0 ; fsname->path[pathpos] ; )
- {
- pathpos++;
- }
- }
-
-
- for ( ; ; )
- {
- char ch = _f_toupper( *name++ );
-
- if ( !ch )
- {
- break;
- }
-
- if ( ch == ':' )
- {
- return 1; /*not allowed*/
- }
-
- if ( ( ch == '/' ) || ( ch == '\\' ) )
- {
- if ( pathpos )
- {
- if ( fsname->path[pathpos - 1] == '/' )
- {
- return 1; /*not allowed double */
- }
-
- if ( pathpos >= F_MAXPATH - 2 )
- {
- return 1; /*path too long*/
- }
-
- fsname->path[pathpos++] = '/';
- }
-
- for ( ; namepos ; )
- {
- if ( s[namepos - 1] != ' ' )
- {
- break;
- }
-
- namepos--; /*remove end spaces*/
- }
-
- for ( a = 0 ; a < namepos ; a++ )
- {
- if ( pathpos >= F_MAXPATH - 2 )
- {
- return 1; /*path too long*/
- }
-
- fsname->path[pathpos++] = s[a];
- }
-
- namepos = 0;
- continue;
- }
-
- if ( ( ch == ' ' ) && ( !namepos ) )
- {
- continue; /*remove start spaces*/
- }
-
- if ( namepos >= ( sizeof( s ) - 2 ) )
- {
- return 1; /*name too long*/
- }
-
- s[namepos++] = ch;
- }
-
- s[namepos] = 0; /*terminates it*/
- fsname->path[pathpos] = 0; /*terminates it*/
-
- for ( ; namepos ; )
- {
- if ( s[namepos - 1] != ' ' )
- {
- break;
- }
-
- s[namepos - 1] = 0; /*remove end spaces*/
- namepos--;
- }
-
- if ( !_f_setnameext( s, fsname->filename, fsname->fileext ) )
- {
- return 2; /*no name*/
- }
-
- if ( fsname->filename[0] == ' ' )
- {
- return 1; /*cannot be*/
- }
-
- return 0;
-} /* _f_setfsname */
-
-
-/****************************************************************************
- *
- * _f_createfullname
- *
- * create full name
- *
- * INPUTS
- *
- * buffer - where to create
- * buffersize - size of the buffer
- * drivenum - drive number
- * path - path of the file
- * filename - file name
- * fileext - file extension
- *
- * RETURNS
- *
- * 1 - if found and osize is filled
- * 0 - not found
- *
- ***************************************************************************/
-int _f_createfullname ( char * buffer, int buffersize, char * path, char * filename, char * fileext )
-{
- char * fullname = buffer;
- int a;
-
- /* adding drive letter */
- if ( buffersize < 1 )
- {
- return 1;
- }
-
- *fullname++ = '/';
- buffersize -= 1;
-
- /* adding path */
- if ( path[0] )
- {
- for ( ; ; )
- {
- char ch = *path++;
-
- if ( !ch )
- {
- break;
- }
-
- if ( buffersize <= 0 )
- {
- return 1;
- }
-
- *fullname++ = ch;
- buffersize--;
- }
-
- /* adding separator */
- if ( buffersize <= 0 )
- {
- return 1;
- }
-
- *fullname++ = '/';
- }
-
- /* adding name */
- for ( a = 0 ; a < F_MAXNAME ; a++ )
- {
- char ch = *filename++;
-
- if ( ( !ch ) || ( ch == 32 ) )
- {
- break;
- }
-
- if ( buffersize <= 0 )
- {
- return 1;
- }
-
- *fullname++ = ch;
- buffersize--;
- }
-
- /* adding ext*/
- if ( fileext[0] && ( fileext[0] != 32 ) )
- {
- /* adding dot */
- if ( !buffersize )
- {
- return 1;
- }
-
- *fullname++ = '.';
-
- for ( a = 0 ; a < F_MAXEXT ; a++ )
- {
- char ch = *fileext++;
-
- if ( ( !ch ) || ( ch == 32 ) )
- {
- break;
- }
-
- if ( buffersize <= 0 )
- {
- return 1;
- }
-
- *fullname++ = ch;
- buffersize--;
- }
- }
-
- /* adding terminator */
- if ( buffersize <= 0 )
- {
- return 1;
- }
-
- *fullname++ = 0;
-
- return 0;
-} /* _f_createfullname */
-
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.h
deleted file mode 100644
index 1c5768a8d..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/util_sfn.h
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __UTIL_SFN_H
-#define __UTIL_SFN_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-unsigned char _f_checknamewc ( const char *, const char * );
-unsigned char _f_checkname ( char *, char * );
-
-unsigned char _f_setnameext ( char *, char *, char * );
-unsigned char _f_setfsname ( const char *, F_NAME * );
-int _f_createfullname ( char * buffer, int buffersize, char * path, char * filename, char * fileext );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __UTIL_SFN_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.c
deleted file mode 100644
index b63068118..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.c
+++ /dev/null
@@ -1,980 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/fat_sl.h"
-#include "../../psp/include/psp_string.h"
-
-#include "volume.h"
-#include "util.h"
-#include "drv.h"
-#include "fat.h"
-#include "dir.h"
-#include "file.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#if F_FS_THREAD_AWARE == 1
- #include "f_lock.h"
-#endif
-
-F_VOLUME gl_volume; /* only one volume */
-F_FILE gl_file; /* file */
-char gl_sector[F_SECTOR_SIZE]; /* actual sector */
-
-#if F_FILE_CHANGED_EVENT
-F_FILE_CHANGED_EVENTFUNC f_filechangedevent;
-#endif
-
-
-/* Defines the number of sectors per cluster on a sector number basis */
-typedef struct
-{
- unsigned long max_sectors;
- unsigned char sector_per_cluster;
-} t_FAT32_CS;
-
-static const t_FAT32_CS FAT32_CS[] =
-{
- { 0x00020000, 1 } /* ->64MB */
- , { 0x00040000, 2 } /* ->128MB */
- , { 0x00080000, 4 } /* ->256MB */
- , { 0x01000000, 8 } /* ->8GB */
- , { 0x02000000, 16 } /* ->16GB */
- , { 0x0ffffff0, 32 } /* -> ... */
-};
-
-
-/****************************************************************************
- *
- * _f_writebootrecord
- *
- * writing boot record onto a volume, it uses number of hidden sector variable
- *
- * INPUTS
- * phy - media physical descriptor
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_writebootrecord ( F_PHY * phy )
-{
- unsigned char jump_code[] =
- {
- 0xeb, 0x3c, 0x90
- };
- unsigned char oem_name[] = "MSDOS5.0";
- unsigned char executable_marker[] =
- {
- 0x55, 0xaa
- };
- unsigned char * ptr = (unsigned char *)gl_sector;
- unsigned char rs;
- unsigned short mre;
-
- unsigned char ret;
- unsigned char _n = 0;
-
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- { /*write FS_INFO*/
- unsigned char a;
-
- rs = 32 + 4;
- mre = 0;
-
- psp_memset( ptr, 0, F_SECTOR_SIZE );
-
- for ( a = 0 ; a < rs ; a++ )
- {
- ret = _f_writeglsector( a ); /*erase reserved area*/
- if ( ret )
- {
- return ret;
- }
- }
-
- ptr = _setlong( 0x41615252, ptr ); /*signature*/
- ptr = _setcharzero( 480, ptr ); /*reserved*/
- ptr = _setlong( 0x61417272, ptr ); /*signature*/
- ptr = _setlong( 0xffffffff, ptr ); /*no last*/
- ptr = _setlong( 0xffffffff, ptr ); /*no hint*/
- ptr = _setcharzero( 12, ptr ); /*reserved*/
- ptr = _setlong( 0xaa550000, ptr ); /*trail*/
-
-
- ret = _f_writeglsector( 1 ); /*write FSINFO*/
- if ( ret )
- {
- return ret;
- }
-
- ret = _f_writeglsector( 1 + 6 ); /*write FSINFO*/
- if ( ret )
- {
- return ret;
- }
- }
- else
- {
- rs = 1;
- mre = 512;
- }
-
- ptr = (unsigned char *)gl_sector;
- ptr = _setchar( jump_code, sizeof( jump_code ), ptr );
- ptr = _setchar( oem_name, sizeof( oem_name ) - 1, ptr );
- ptr = _setword( F_SECTOR_SIZE, ptr );
- *ptr++ = gl_volume.bootrecord.sector_per_cluster;
- ptr = _setword( rs, ptr ); /* reserved sectors */
- *ptr++ = 2; /* number of FATs */
- ptr = _setword( mre, ptr ); /* max root entry */
- if ( phy->number_of_sectors < 0x10000 )
- {
- ptr = _setword( (unsigned short)phy->number_of_sectors, ptr );
- }
- else
- {
- ptr = _setword( 0, ptr );
- }
-
- *ptr++ = 0xf0; /* media descriptor */
- ptr = _setword( (unsigned short)gl_volume.bootrecord.sector_per_FAT, ptr );
- ptr = _setword( phy->sector_per_track, ptr );
- ptr = _setword( phy->number_of_heads, ptr );
- ptr = _setlong( 0, ptr ); /* number of hidden sectors */
- if ( phy->number_of_sectors >= 0x10000 )
- {
- ptr = _setlong( phy->number_of_sectors, ptr );
- }
- else
- {
- ptr = _setlong( 0, ptr ); /* number of sectors */
- }
-
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- ptr = _setlong( gl_volume.bootrecord.sector_per_FAT32, ptr );
- ptr = _setword( 0, ptr );
- ptr = _setword( 0, ptr );
- ptr = _setlong( 2, ptr );
- ptr = _setword( 1, ptr );
- ptr = _setword( 6, ptr );
- ptr = _setchar( NULL, 12, ptr );
- _n = 28;
- }
-
-
- ptr = _setword( 0, ptr ); /* logical drive num */
- *ptr++ = 0x29; /* extended signature */
- ptr = _setlong( 0x11223344, ptr );
- ptr = _setchar( (const unsigned char *)"NO NAME ", 11, ptr ); /* volume name */
-
- switch ( gl_volume.mediatype )
- {
- case F_FAT12_MEDIA:
- ptr = _setchar( (const unsigned char *)"FAT12 ", 8, ptr );
- break;
-
- case F_FAT16_MEDIA:
- ptr = _setchar( (const unsigned char *)"FAT16 ", 8, ptr );
- break;
-
- case F_FAT32_MEDIA:
- ptr = _setchar( (const unsigned char *)"FAT32 ", 8, ptr );
- break;
-
- default:
- return F_ERR_INVALIDMEDIA;
- } /* switch */
-
- ptr = _setchar( 0, 448 - _n, ptr );
- ptr = _setchar( executable_marker, sizeof( executable_marker ), ptr );
-
- if ( _n )
- {
- ret = _f_writeglsector( 6 );
- if ( ret )
- {
- return ret;
- }
- }
-
-
- return _f_writeglsector( 0 ); /*write bootrecord*/
-} /* _f_writebootrecord */
-
-
-/****************************************************************************
- *
- * _f_buildsectors
- *
- * INPUTS
- * phy - media physical descriptor
- *
- * calculate relative sector position from boot record
- *
- ***************************************************************************/
-static unsigned char _f_buildsectors ( F_PHY * phy )
-{
- gl_volume.mediatype = F_UNKNOWN_MEDIA;
-
-
- if ( gl_volume.bootrecord.sector_per_FAT )
- {
- gl_volume.firstfat.sector = 1;
- gl_volume.firstfat.num = gl_volume.bootrecord.sector_per_FAT;
- gl_volume.root.sector = gl_volume.firstfat.sector + ( gl_volume.firstfat.num * (unsigned long)( gl_volume.bootrecord.number_of_FATs ) );
- gl_volume.root.num = ( 512 * sizeof( F_DIRENTRY ) ) / F_SECTOR_SIZE;
-
- gl_volume._tdata.sector = gl_volume.root.sector + gl_volume.root.num;
- gl_volume._tdata.num = 0; /*??*/
- }
- else
- {
- gl_volume.firstfat.sector = ( 32 + 4 );
- gl_volume.firstfat.num = gl_volume.bootrecord.sector_per_FAT32;
- gl_volume._tdata.sector = gl_volume.firstfat.sector;
- gl_volume._tdata.sector += gl_volume.firstfat.num * (unsigned long)( gl_volume.bootrecord.number_of_FATs );
- gl_volume._tdata.num = 0; /*??*/
-
- {
- unsigned long sectorcou = gl_volume.bootrecord.sector_per_cluster;
- gl_volume.root.sector = ( ( gl_volume.bootrecord.rootcluster - 2 ) * sectorcou ) + gl_volume._tdata.sector;
- gl_volume.root.num = gl_volume.bootrecord.sector_per_cluster;
- }
- }
-
- {
- unsigned long maxcluster;
- maxcluster = phy->number_of_sectors;
- maxcluster -= gl_volume._tdata.sector;
- maxcluster /= gl_volume.bootrecord.sector_per_cluster;
- gl_volume.maxcluster = maxcluster;
- }
-
- if ( gl_volume.maxcluster < ( F_CLUSTER_RESERVED & 0xfff ) )
- {
- gl_volume.mediatype = F_FAT12_MEDIA;
- }
- else if ( gl_volume.maxcluster < ( F_CLUSTER_RESERVED & 0xffff ) )
- {
- gl_volume.mediatype = F_FAT16_MEDIA;
- }
- else
- {
- gl_volume.mediatype = F_FAT32_MEDIA;
- }
-
- return F_NO_ERROR;
-} /* _f_buildsectors */
-
-
-
-/****************************************************************************
- *
- * _f_prepareformat
- *
- * preparing boot record for formatting, it sets and calculates values
- *
- * INPUTS
- * phy - media physical descriptor
- * f_bootrecord - which bootrecord need to be prepare
- * number_of_hidden_sectors - where boot record starts
- * fattype - one of this definitions F_FAT12_MEDIA,F_FAT16_MEDIA,F_FAT32_MEDIA
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_prepareformat ( F_PHY * phy, unsigned char fattype )
-{
- if ( !phy->number_of_sectors )
- {
- return F_ERR_INVALIDSECTOR;
- }
-
- gl_volume.bootrecord.number_of_FATs = 2;
- gl_volume.bootrecord.media_descriptor = 0xf0;
-
- if ( fattype != F_FAT32_MEDIA )
- {
- unsigned long _n;
- switch ( fattype )
- {
- case F_FAT12_MEDIA:
- _n = F_CLUSTER_RESERVED & 0xfff;
- break;
-
- case F_FAT16_MEDIA:
- _n = F_CLUSTER_RESERVED & 0xffff;
- break;
-
- default:
- return F_ERR_INVFATTYPE;
- }
-
- gl_volume.bootrecord.sector_per_cluster = 1;
- while ( gl_volume.bootrecord.sector_per_cluster )
- {
- if ( phy->number_of_sectors / gl_volume.bootrecord.sector_per_cluster < _n )
- {
- break;
- }
-
- gl_volume.bootrecord.sector_per_cluster <<= 1;
- }
-
- if ( !gl_volume.bootrecord.sector_per_cluster )
- {
- return F_ERR_MEDIATOOLARGE;
- }
- }
-
- else
- {
- unsigned char i;
- for ( i = 0 ; i<( sizeof( FAT32_CS ) / sizeof( t_FAT32_CS ) ) - 1 && phy->number_of_sectors>FAT32_CS[i].max_sectors ; i++ )
- {
- }
-
- gl_volume.bootrecord.sector_per_cluster = FAT32_CS[i].sector_per_cluster;
- }
-
- if ( !gl_volume.bootrecord.sector_per_cluster )
- {
- return F_ERR_INVALIDMEDIA; /*fat16 cannot be there*/
- }
-
- {
- long secpercl = gl_volume.bootrecord.sector_per_cluster;
- long nfat = gl_volume.bootrecord.number_of_FATs;
- unsigned long roots;
- unsigned long fatsec;
-
- roots = ( 512 * sizeof( F_DIRENTRY ) ) / F_SECTOR_SIZE;
-
- switch ( fattype )
- {
- case F_FAT32_MEDIA:
- {
- unsigned long _n = (unsigned long)( 128 * secpercl + nfat );
- fatsec = ( phy->number_of_sectors - ( 32 + 4 ) + 2 * secpercl );
- fatsec += ( _n - 1 );
- fatsec /= _n;
- gl_volume.bootrecord.sector_per_FAT32 = fatsec;
- gl_volume.bootrecord.sector_per_FAT = 0;
- }
- break;
-
- case F_FAT16_MEDIA:
- {
- unsigned long _n = (unsigned long)( 256 * secpercl + nfat );
- fatsec = ( phy->number_of_sectors - 1 - roots + 2 * secpercl );
- fatsec += ( _n - 1 );
- fatsec /= _n;
- gl_volume.bootrecord.sector_per_FAT = (unsigned short)( fatsec );
- }
- break;
-
- case F_FAT12_MEDIA:
- {
- unsigned long _n = (unsigned long)( 1024 * secpercl + 3 * nfat );
- fatsec = ( phy->number_of_sectors - 1 - roots + 2 * secpercl );
- fatsec *= 3;
- fatsec += ( _n - 1 );
- fatsec /= _n;
- gl_volume.bootrecord.sector_per_FAT = (unsigned short)( fatsec );
- }
- break;
-
- default:
- return F_ERR_INVALIDMEDIA;
- } /* switch */
-
- return F_NO_ERROR;
- }
-} /* _f_prepareformat */
-
-
-
-/****************************************************************************
- *
- * _f_postformat
- *
- * erase fats, erase root directory, reset variables after formatting
- *
- * INPUTS
- * phy - media physical descriptor
- * fattype - one of this definitions F_FAT12_MEDIA,F_FAT16_MEDIA,F_FAT32_MEDIA
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_postformat ( F_PHY * phy, unsigned char fattype )
-{
- unsigned long a;
- unsigned char ret;
-
- _f_buildsectors( phy ); /*get positions*/
- if ( gl_volume.mediatype != fattype )
- {
- return F_ERR_MEDIATOOSMALL;
- }
-
- gl_volume.fatsector = (unsigned long)( -1 );
-
- {
- unsigned char * ptr = (unsigned char *)gl_sector;
- unsigned char j = 2;
- unsigned long i;
-
- psp_memset( ptr, 0, F_SECTOR_SIZE );
-
- switch ( gl_volume.mediatype )
- {
- case F_FAT16_MEDIA:
- j = 3;
- break;
-
- case F_FAT32_MEDIA:
- j = 11;
- break;
- }
-
- *ptr = gl_volume.bootrecord.media_descriptor;
- psp_memset( ptr + 1, 0xff, j );
- if ( gl_volume.mediatype == F_FAT32_MEDIA )
- {
- *( ptr + 8 ) = (unsigned char)( F_CLUSTER_LAST & 0xff );
- }
-
- (void)_f_writeglsector( gl_volume.firstfat.sector );
- (void)_f_writeglsector( gl_volume.firstfat.sector + gl_volume.firstfat.num );
- psp_memset( ptr, 0, ( j + 1 ) );
-
- for ( i = 1 ; i < gl_volume.firstfat.num ; i++ )
- {
- (void)_f_writeglsector( gl_volume.firstfat.sector + i );
- (void)_f_writeglsector( gl_volume.firstfat.sector + i + gl_volume.firstfat.num );
- }
- }
-
- for ( a = 0 ; a < gl_volume.root.num ; a++ ) /*reset root direntries*/
- {
- ret = _f_writeglsector( gl_volume.root.sector + a );
- if ( ret )
- {
- return ret;
- }
- }
-
- return _f_writebootrecord( phy );
-} /* _f_postformat */
-
-
-/****************************************************************************
- *
- * fn_hardformat
- *
- * Making a complete format on media, independently from master boot record,
- * according to media physical
- *
- * INPUTS
- * fattype - one of this definitions F_FAT12_MEDIA,F_FAT16_MEDIA,F_FAT32_MEDIA
- *
- * RETURNS
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_hardformat ( unsigned char fattype )
-{
- unsigned char ret;
- int mdrv_ret;
- F_PHY phy;
-
- ret = _f_getvolume();
- if ( ret && ( ret != F_ERR_NOTFORMATTED ) )
- {
- return ret;
- }
-
- gl_volume.state = F_STATE_NEEDMOUNT;
-
- psp_memset( &phy, 0, sizeof( F_PHY ) );
-
- mdrv_ret = mdrv->getphy( mdrv, &phy );
- if ( mdrv_ret )
- {
- return F_ERR_ONDRIVE;
- }
-
- ret = _f_prepareformat( &phy, fattype ); /*no partition*/
- if ( ret )
- {
- return ret;
- }
-
- return _f_postformat( &phy, fattype );
-} /* fn_hardformat */
-
-
-
-
-/****************************************************************************
- *
- * _f_readbootrecord
- *
- * read boot record from a volume, it detects if there is MBR on the media
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-static unsigned char _f_readbootrecord ( void )
-{
- unsigned char ret;
- unsigned char * ptr = (unsigned char *)gl_sector;
- unsigned long maxcluster, _n;
- unsigned long first_sector = 0;
-
- gl_volume.mediatype = F_UNKNOWN_MEDIA;
-
-
- ret = _f_readglsector( 0 );
- if ( ret )
- {
- return ret;
- }
-
-
- if ( ( ptr[0x1fe] != 0x55 ) || ( ptr[0x1ff] != 0xaa ) )
- {
- return F_ERR_NOTFORMATTED; /*??*/
- }
-
- if ( ( ptr[0] != 0xeb ) && ( ptr[0] != 0xe9 ) )
- {
- first_sector = _f_getlong( &ptr[0x08 + 0x1be] ); /*start sector for 1st partioon*/
-
- ret = _f_readglsector( first_sector );
- if ( ret )
- {
- return ret;
- }
-
- if ( ( ptr[0x1fe] != 0x55 ) || ( ptr[0x1ff] != 0xaa ) )
- {
- return F_ERR_NOTFORMATTED; /*??*/
- }
-
- if ( ( ptr[0] != 0xeb ) && ( ptr[0] != 0xe9 ) )
- {
- return F_ERR_NOTFORMATTED; /*??*/
- }
- }
-
- ptr += 11;
- if ( _f_getword( ptr ) != F_SECTOR_SIZE )
- {
- return F_ERR_NOTSUPPSECTORSIZE;
- }
-
- ptr += 2;
- gl_volume.bootrecord.sector_per_cluster = *ptr++;
- gl_volume.firstfat.sector = _f_getword( ptr );
- ptr += 2;
- gl_volume.bootrecord.number_of_FATs = *ptr++;
- gl_volume.root.num = _f_getword( ptr );
- ptr += 2;
- gl_volume.root.num *= sizeof( F_DIRENTRY );
- gl_volume.root.num /= F_SECTOR_SIZE;
- maxcluster = _f_getword( ptr );
- ptr += 2;
- gl_volume.bootrecord.media_descriptor = *ptr++;
- gl_volume.firstfat.num = _f_getword( ptr );
- ptr += 6;
- _n = _f_getlong( ptr );
- ptr += 4;
- if ( _n < first_sector )
- {
- _n = first_sector;
- }
-
- gl_volume.firstfat.sector += _n;
- if ( !maxcluster )
- {
- maxcluster = _f_getlong( ptr );
- }
-
- ptr += 4;
-
-
- if ( gl_volume.firstfat.num )
- {
- gl_volume.root.sector = gl_volume.firstfat.sector + ( gl_volume.firstfat.num * gl_volume.bootrecord.number_of_FATs );
- gl_volume._tdata.sector = gl_volume.root.sector + gl_volume.root.num;
- gl_volume._tdata.num = 0;
- ptr += 3;
- }
- else
- {
- gl_volume.firstfat.num = _f_getlong( ptr );
- ptr += 8;
- gl_volume._tdata.sector = gl_volume.firstfat.sector;
- gl_volume._tdata.sector += gl_volume.firstfat.num * gl_volume.bootrecord.number_of_FATs;
- gl_volume._tdata.num = 0;
- gl_volume.bootrecord.rootcluster = _f_getlong( ptr );
- ptr += 23;
- gl_volume.root.num = gl_volume.bootrecord.sector_per_cluster;
- gl_volume.root.sector = ( ( gl_volume.bootrecord.rootcluster - 2 ) * gl_volume.root.num ) + gl_volume._tdata.sector;
- }
-
- gl_volume.bootrecord.serial_number = _f_getlong( ptr );
-
- maxcluster -= gl_volume._tdata.sector;
- maxcluster += _n;
- gl_volume.maxcluster = maxcluster / gl_volume.bootrecord.sector_per_cluster;
-
- if ( gl_volume.maxcluster < ( F_CLUSTER_RESERVED & 0xfff ) )
- {
- gl_volume.mediatype = F_FAT12_MEDIA;
- }
- else if ( gl_volume.maxcluster < ( F_CLUSTER_RESERVED & 0xffff ) )
- {
- gl_volume.mediatype = F_FAT16_MEDIA;
- }
- else
- {
- gl_volume.mediatype = F_FAT32_MEDIA;
- }
-
- if ( gl_volume.bootrecord.media_descriptor != 0xf8 ) /*fixdrive*/
- {
- if ( gl_volume.bootrecord.media_descriptor != 0xf0 ) /*removable*/
- {
- return F_ERR_NOTFORMATTED; /*??*/
- }
- }
-
- return F_NO_ERROR;
-} /* _f_readbootrecord */
-
-
-
-
-/****************************************************************************
- *
- * _f_getvolume
- *
- * getting back a volume info structure of a given drive, it try to mounts
- * drive if it was not mounted before
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char _f_getvolume ( void )
-{
- switch ( gl_volume.state )
- {
- case F_STATE_NONE:
- return F_ERR_ONDRIVE;
-
- case F_STATE_WORKING:
-
- if ( !_f_checkstatus() )
- {
- return F_NO_ERROR;
- }
-
- /* here we don't stop case flow, */
- /* because we have to clean up this volume! */
-
- case F_STATE_NEEDMOUNT:
- {
- gl_file.modified = 0;
- gl_volume.modified = 0;
- gl_volume.lastalloccluster = 0;
- gl_volume.actsector = (unsigned long)( -1 );
- gl_volume.fatsector = (unsigned long)( -1 );
-
- gl_file.mode = F_FILE_CLOSE;
-
- gl_volume.cwd[0] = 0; /*reset cwd*/
- gl_volume.mediatype = F_UNKNOWN_MEDIA;
-
- if ( mdrv->getstatus != NULL )
- {
- if ( mdrv->getstatus( mdrv ) & F_ST_MISSING )
- {
- gl_volume.state = F_STATE_NEEDMOUNT; /*card missing*/
- return F_ERR_CARDREMOVED;
- }
- }
-
- if ( !_f_readbootrecord() )
- {
- gl_volume.state = F_STATE_WORKING;
- return F_NO_ERROR;
- }
-
- gl_volume.mediatype = F_UNKNOWN_MEDIA;
- return F_ERR_NOTFORMATTED;
- }
- } /* switch */
-
- return F_ERR_ONDRIVE;
-} /* _f_getvolume */
-
-
-
-/****************************************************************************
- *
- * fn_getfreespace
- *
- * get total/free/used/bad diskspace
- *
- * INPUTS
- * pspace - pointer where to store the information
- *
- * RETURNS
- * error code
- *
- ***************************************************************************/
-unsigned char fn_getfreespace ( F_SPACE * pspace )
-{
- unsigned char ret;
- unsigned long a;
- unsigned long clustersize;
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- psp_memset( pspace, 0, sizeof( F_SPACE ) );
- pspace->total = gl_volume.maxcluster;
-
- gl_volume.fatsector = (unsigned long)-1;
- for ( a = 2 ; a < gl_volume.maxcluster + 2 ; a++ )
- {
- unsigned long value;
-
- ret = _f_getclustervalue( a, &value );
- if ( ret )
- {
- return ret;
- }
-
- if ( !value )
- {
- ++( pspace->free );
- }
- else if ( value == F_CLUSTER_BAD )
- {
- ++( pspace->bad );
- }
- else
- {
- ++( pspace->used );
- }
- }
-
- clustersize = (unsigned long)( gl_volume.bootrecord.sector_per_cluster * F_SECTOR_SIZE );
- for ( a = 0 ; ( clustersize & 1 ) == 0 ; a++ )
- {
- clustersize >>= 1;
- }
-
- pspace->total_high = ( pspace->total ) >> ( 32 - a );
- pspace->total <<= a;
- pspace->free_high = ( pspace->free ) >> ( 32 - a );
- pspace->free <<= a;
- pspace->used_high = ( pspace->used ) >> ( 32 - a );
- pspace->used <<= a;
- pspace->bad_high = ( pspace->bad ) >> ( 32 - a );
- pspace->bad <<= a;
-
- return F_NO_ERROR;
-} /* fn_getfreespace */
-
-
-/****************************************************************************
- *
- * fn_getserial
- *
- * get serial number
- *
- * INPUTS
- * serial - pointer where to store the serial number
- *
- * RETURNS
- * error code
- *
- ***************************************************************************/
-unsigned char fn_getserial ( unsigned long * serial )
-{
- unsigned char ret;
-
- ret = _f_getvolume();
- if ( ret )
- {
- return ret;
- }
-
- *serial = gl_volume.bootrecord.serial_number;
- return 0;
-}
-
-
-/*
-** fs_init
-**
-** Initialize STHIN file system
-**
-** RETURN: F_NO_ERROR on success, other if error.
-*/
-unsigned char fs_init ( void )
-{
- unsigned char rc = F_NO_ERROR;
-
-#if RTOS_SUPPORT
- rc = fsr_init();
- if ( rc )
- {
- return rc;
- }
-
-#endif
- return rc;
-} /* fs_init */
-
-
-/*
-** fs_delete
-**
-** Delete STHIN file system
-**
-** RETURN: F_NO_ERROR on success, other if error.
-*/
-unsigned char fs_delete ( void )
-{
- unsigned char rc = F_NO_ERROR;
-
-#if RTOS_SUPPORT
- rc = fsr_delete();
- if ( rc )
- {
- return rc;
- }
-
-#endif
- return rc;
-} /* fs_delete */
-
-
-/****************************************************************************
- *
- * fn_initvolume
- *
- * initiate a volume, this function has to be called 1st to set physical
- * driver function to a given volume
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-unsigned char fn_initvolume ( F_DRIVERINIT initfunc )
-{
-#if F_FS_THREAD_AWARE == 1
- {
- extern xSemaphoreHandle fs_lock_semaphore;
-
- if( fs_lock_semaphore == NULL )
- {
- fs_lock_semaphore = xSemaphoreCreateMutex();
- if( fs_lock_semaphore == NULL )
- {
- return F_ERR_OS;
- }
- }
- }
-#endif /* F_FS_THREAD_AWARE */
-
- gl_volume.state = F_STATE_NONE;
-
- mdrv = initfunc( 0 );
- if ( mdrv == NULL )
- {
- return F_ERR_INITFUNC;
- }
-
- gl_volume.state = F_STATE_NEEDMOUNT;
-
-#if F_FILE_CHANGED_EVENT
- f_filechangedevent = 0;
-#endif
-
- return _f_getvolume();
-} /* fn_initvolume */
-
-
-/****************************************************************************
- *
- * fn_delvolume
- *
- ***************************************************************************/
-unsigned char fn_delvolume ( void )
-{
- if ( mdrv->release )
- {
- (void)mdrv->release( mdrv );
- }
-
- return 0;
-}
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.h
deleted file mode 100644
index a70de03b5..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/common/volume.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __VOLUME_H
-#define __VOLUME_H
-
-#include "config_fat_sl.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-typedef struct
-{
- unsigned char sector_per_cluster;
- unsigned char number_of_FATs;
- unsigned char media_descriptor;
- unsigned long rootcluster;
- unsigned long sector_per_FAT;
- unsigned long sector_per_FAT32;
- unsigned long serial_number;
-} F_BOOTRECORD;
-
-
-typedef struct
-{
- unsigned long sector; /*start sector*/
- unsigned long num; /*number of sectors*/
-} F_SECTOR;
-
-
-typedef struct
-{
- unsigned char state;
- F_BOOTRECORD bootrecord;
- F_SECTOR firstfat;
- F_SECTOR root;
- F_SECTOR _tdata;
-
- unsigned long actsector;
- unsigned long fatsector;
-
- unsigned long lastalloccluster;
- unsigned char modified;
- char cwd[F_MAXPATH]; /*current working folder in this volume*/
- unsigned char mediatype;
- unsigned long maxcluster;
-} F_VOLUME;
-
-
-enum
-{
-/* 0 */
- F_STATE_NONE,
-
-/* 1 */ F_STATE_NEEDMOUNT,
-
-/* 2 */ F_STATE_WORKING
-};
-
-
-extern F_VOLUME gl_volume;
-extern F_FILE gl_file;
-extern char gl_sector[F_SECTOR_SIZE]; /* actual sector */
-
-unsigned char _f_getvolume ( void );
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* ifndef __VOLUME_H */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.c
deleted file mode 100644
index c74047a3a..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.c
+++ /dev/null
@@ -1,3069 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "test.h"
-#include "../../api/fat_sl.h"
-#include "config_fat_sl_test.h"
-#include "../../psp/target/fat_sl/psp_test.h"
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-static char cwd[F_MAXPATH];
-
-static F_FIND find;
-
-static void _f_deleteall ( void )
-{
- F_FIND f2;
- unsigned char sd = 0, rc, fl = 0;
-
- f2 = find;
- do
- {
- rc = f_findfirst( "*.*", &find );
- while ( rc == 0 && find.filename[0] == '.' )
- {
- rc = f_findnext( &find );
- }
-
- if ( rc == 0 )
- {
- if ( find.attr & F_ATTR_DIR )
- {
- ++sd;
- fl = 1;
- f2 = find;
- (void)f_chdir( find.filename );
- continue;
- }
- else
- {
- (void)f_delete( find.filename );
- rc = f_findnext( &find );
- }
- }
-
- if ( rc && sd && fl )
- {
- (void)f_chdir( ".." );
- --sd;
- fl = 0;
- find = f2;
- (void)f_rmdir( find.filename );
- rc = f_findnext( &find );
- }
-
- if ( rc && sd && !fl )
- {
- (void)f_chdir( "/" );
- sd = 0;
- rc = 0;
- }
- }
- while ( rc == 0 );
-} /* _f_deleteall */
-
-char stmp[20];
-static char * f_nameconv ( char * s )
-{
- char * ss = stmp;
-
- for ( ; ; )
- {
- char ch = *s++;
- if ( ( ch >= 'a' ) && ( ch <= 'z' ) )
- {
- ch += 'A' - 'a';
- }
-
- *ss++ = ch;
- if ( !ch )
- {
- break;
- }
- }
-
- return stmp;
-} /* f_nameconv */
-
-static unsigned char f_formatting ( void )
-{
- unsigned char ret;
-
- _f_dump( "f_formatting" );
-
-/*checking formatting*/
- ret = f_format( F_FAT_TYPE );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_formatting */
-
-static unsigned char _f_checkcwd ( char * orig )
-{
- unsigned char ret;
-
- ret = f_getcwd( cwd, F_MAXPATH );
- if ( ret )
- {
- return ret;
- }
-
- if ( strcmp( orig, cwd ) )
- {
- return (unsigned char)-1;
- }
-
- return 0;
-}
-
-static unsigned char f_dirtest ( void )
-{
- unsigned char ret;
-
- _f_dump( "f_dirtest" );
-
- _f_deleteall();
-
-/*creates a ab abc abcd*/
- ret = f_mkdir( "a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "ab" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "abc" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "abca" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*creates directories in /a - a ab abc abcd*/
- ret = f_mkdir( "a/a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "a/ab" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "a/abc" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "a/abcd" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*change into a/abcd and check cwd*/
- ret = f_chdir( "a/abcd" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*make directory t change into t and check cwd="a/abcd/t"*/
- ret = f_mkdir( "t" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "t" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd/t" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd/t" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "../." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*removing t dir*/
- ret = f_rmdir( "t" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "t" );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*removing /a dir*/
- ret = f_rmdir( "/ab" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "/ab" );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*removing /a dir*/
- ret = f_rmdir( "../../a" );
- if ( ret != F_ERR_NOTEMPTY )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*removing /abca dir*/
- ret = f_rmdir( "a:/abca" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*changing invalid dirs*/
- ret = f_chdir( "" );
- if ( ret != F_ERR_INVALIDNAME )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( " " );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "?" );
- if ( ret != F_ERR_INVALIDNAME )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "*.*" );
- if ( ret != F_ERR_INVALIDNAME )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/a/abcd" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*changing into /abc and removes subfolder from /a/ */
- ret = f_chdir( "/abc" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "/a/a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "A:../a/ab" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "A:/a/abc" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( ".././abc/.././a/../a/abcd" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*some invalid rmdir*/
- ret = f_rmdir( "." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( ".." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*create again abc remove abc*/
- ret = f_mkdir( ".././abc" );
- if ( ret != F_ERR_DUPLICATED )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "../abc" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( ".././abc" );
- if ( ret != F_ERR_INVALIDDIR )
- {
- return _f_result( __LINE__, ret ); /*cwd is not exist*/
- }
-
- ret = f_chdir( "/" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*try . and .. in the root*/
- ret = f_chdir( "." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "./././." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( ".." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( "/" ); /*root!*/
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*test . and .. in a and remove a*/
- ret = f_chdir( "a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( ".." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "a" );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "./.." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "a" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*check if all are removed*/
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_dirtest */
-
-
-static unsigned char f_findingtest ( void )
-{
- unsigned char ret;
-
- _f_dump( "f_findingtest" );
-
- _f_deleteall();
-
-/*check empty*/
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*create Hello.dir*/
- ret = f_mkdir( "Hello.dir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*check if it is exist, and only exist*/
- ret = f_findfirst( "*.*", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "Hello.dir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( find.attr != F_ATTR_DIR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*check some not founds*/
- ret = f_findfirst( "q*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "Hello.", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "a/*.*", &find );
- if ( ret != F_ERR_INVALIDDIR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( ".", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "..", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "?e.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.?", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.??", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-
-/*check some founds*/
- ret = f_findfirst( "*.dir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.d?r", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.d??", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.???", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "?ello.???", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "he??o.dir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "he?*.dir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "HELLO.DIR", &find ); /*no capitals sensitivity in find!!*/
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*change into hello.dir*/
- ret = f_chdir( "hello.dir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "..", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "??", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( ".", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "k*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, "." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, ".." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- ret = f_findfirst( "*.a", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*creating testdir and find it*/
- ret = f_mkdir( "testdir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, "." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, ".." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, "." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, ".." ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*search exact file*/
- ret = f_findfirst( "testDir", &find ); /*no capitals!*/
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-
-/*go back to root and remove dirs*/
- ret = f_chdir( "\\" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "Hello.dir/testdir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "Hello.dir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*check if all are removed*/
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_findingtest */
-
-static unsigned char f_powerfail ( void )
-{
- unsigned char ret;
-
- _f_dump( "f_powerfail" );
-
-/*checking if its power fail system (RAMDRIVE is not powerfail!)*/
- ret = f_mkdir( "testdir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "testdir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*checking formatting*/
- ret = f_format( F_FAT_TYPE );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*checking formatting, 1st creating*/
- ret = f_format( F_FAT_TYPE );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "testdir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "testdir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*checking formatting, 2nd creating*/
- ret = f_format( F_FAT_TYPE );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "testdir" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "testdir", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_mkdir( "testdir2" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "testdir2", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir2" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( strcmp( find.filename, f_nameconv( "testdir2" ) ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_findnext( &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-
-/*checking empty*/
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_format( F_FAT_TYPE );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_poweron();
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_findfirst( "*.*", &find );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- _f_dump( "passed..." );
- return 0;
-} /* f_powerfail */
-
-
-char testbuffer[F_MAX_SEEK_TEST + 16]; /* +16 for f_appending test */
-
-static unsigned char checkfilecontent ( long nums, unsigned char value, F_FILE * file )
-{
- unsigned char ch;
-
- while ( nums-- )
- {
- if ( f_eof( file ) )
- {
- return 1; /*eof ?*/
- }
-
- if ( 1 != f_read( &ch, 1, 1, file ) )
- {
- return 1;
- }
-
- if ( ch != value )
- {
- return 1;
- }
- }
-
- return 0;
-} /* checkfilecontent */
-
-static unsigned char f_seeking ( int sectorsize )
-{
- F_FILE * file;
- unsigned char ret;
- unsigned long size;
- unsigned long pos;
- unsigned long fname_pos;
- char * test_fname[4] =
- {
- "test1.txt", "test2.txt", "test3.txt", "test4.txt"
- };
-
- if ( sectorsize == 128 )
- {
- _f_dump( "f_seeking with 128" );
- }
-
-#if ( F_MAX_SEEK_TEST > 128 )
- else if ( sectorsize == 256 )
- {
- _f_dump( "f_seeking with 256" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 256 )
- else if ( sectorsize == 512 )
- {
- _f_dump( "f_seeking with 512" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 512 )
- else if ( sectorsize == 1024 )
- {
- _f_dump( "f_seeking with 1024" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 1024 )
- else if ( sectorsize == 2048 )
- {
- _f_dump( "f_seeking with 2048" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 2048 )
- else if ( sectorsize == 4096 )
- {
- _f_dump( "f_seeking with 4096" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 4096 )
- else if ( sectorsize == 8192 )
- {
- _f_dump( "f_seeking with 8192" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 8192 )
- else if ( sectorsize == 16384 )
- {
- _f_dump( "f_seeking with 16384" );
- }
-#endif
-#if ( F_MAX_SEEK_TEST > 16384 )
- else if ( sectorsize == 32768 )
- {
- _f_dump( "f_seeking with 32768" );
- }
-#endif
- else
- {
- _f_dump( "f_seeking with random" );
- }
-
-/*checking sector boundary seekeng*/
- file = f_open( "test.bin", "w+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*write sectorsize times 0*/
- psp_memset( testbuffer, 0, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, (long)sectorsize, file );
- if ( size != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek back and read some*/
- ret = f_seek( file, 0, F_SEEK_SET ); /*seek back*/
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos )
- {
- return _f_result( __LINE__, pos );
- }
-
- size = (unsigned long)f_read( testbuffer, 1, sectorsize, file );
- if ( size != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*fake read at eof*/
- size = (unsigned long)f_read( testbuffer, 1, 2, file ); /*eof!*/
- if ( size != 0 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*writing sectorsize times 1 at the end*/
- psp_memset( testbuffer, 1, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, sectorsize, file );
- if ( size != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( sectorsize * 2 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seeking back and read 1byte less*/
- ret = f_seek( file, 0, F_SEEK_SET );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos )
- {
- return _f_result( __LINE__, pos );
- }
-
- size = (unsigned long)f_read( testbuffer, 1, sectorsize - 1, file );
- if ( size != (unsigned long)( sectorsize - 1 ) )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( sectorsize - 1 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-
-/*write 2 times 2*/
- psp_memset( testbuffer, 2, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 2, file );
- if ( size != 2 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( sectorsize + 1 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*read 2 bytes*/
- size = (unsigned long)f_read( testbuffer, 2, 1, file );
- if ( size != 1 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( sectorsize + 3 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-
-/*write 4 times 3*/
- psp_memset( testbuffer, 3, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 4, file );
- if ( size != 4 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( sectorsize + 3 + 4 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek at 2*/
- ret = f_seek( file, 2, F_SEEK_SET );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != 2 )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*write 6 times 4*/
- psp_memset( testbuffer, 4, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 6, file );
- if ( size != 6 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != 8 )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek end -4*/
- ret = f_seek( file, -4, F_SEEK_END );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize - 4 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*read 2 bytes*/
- size = (unsigned long)f_read( testbuffer, 1, 2, file );
- if ( size != 2 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize - 2 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*write 8 times 5*/
- psp_memset( testbuffer, 5, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 8, file );
- if ( size != 8 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize + 6 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek to the begining*/
- ret = f_seek( file, 0, F_SEEK_SET );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek to the end*/
- ret = f_seek( file, 2 * sectorsize + 6, F_SEEK_SET );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize + 6 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*write 2 times 6*/
- psp_memset( testbuffer, 6, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 2, file );
- if ( size != 2 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize + 8 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*seek to the begining*/
- (void)f_seek( file, -( 2 * sectorsize + 8 ), F_SEEK_CUR );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*read 2 times sector*/
- size = (unsigned long)f_read( testbuffer, 1, sectorsize, file );
- if ( size != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, pos );
- }
-
- size = (unsigned long)f_read( testbuffer, 1, sectorsize, file );
- if ( size != (unsigned long)sectorsize )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*write 1 once 7*/
- psp_memset( testbuffer, 7, sectorsize );
- size = (unsigned long)f_write( testbuffer, 1, 1, file );
- if ( size != 1 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize + 1 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*close it*/
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-
-/*check the result*/
- size = (unsigned long)f_filelength( "test.bin" );
- if ( size != (unsigned long)( 2 * sectorsize + 8 ) )
- {
- return _f_result( __LINE__, size );
- }
-
-/*opens it*/
- file = f_open( "test.bin", "r" );
- if ( !file )
- {
- return _f_result( __LINE__, size );
- }
-
- if ( checkfilecontent( 2, 0, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 6, 4, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 8 - 1, 0, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 2, 2, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 2, 1, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 4, 3, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 7 - 2, 1, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 2, 5, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 1, 7, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 5, 5, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 2, 6, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*check pos result*/
- pos = (unsigned long)f_tell( file );
- if ( pos != (unsigned long)( 2 * sectorsize + 8 ) )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*this has to be eof*/
- pos = f_eof( file );
- if ( !pos )
- {
- return _f_result( __LINE__, pos );
- }
-
-/*close it*/
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-/*deletes it*/
- ret = f_delete( "test.bin" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- /**************************************************************/
- for ( pos = 0 ; pos < 4 ; pos++ )
- {
- file = f_open( test_fname[pos], "w" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- memset( testbuffer, '0' + pos, sectorsize );
- if ( f_write( testbuffer, 1, sectorsize - 1, file ) != ( sectorsize - 1 ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
- }
-
- ret = f_delete( test_fname[0] );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( test_fname[2] );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- file = f_open( "test.txt", "w" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- memset( testbuffer, 'a', sectorsize );
- if ( f_write( testbuffer, 1, sectorsize, file ) != sectorsize )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- file = f_open( "test.txt", "r+" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, 2 * sectorsize, F_SEEK_SET );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- for ( pos = 0 ; pos < 2 ; pos++ )
- {
- file = f_open( "test.txt", "r+" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, ( pos + 2 ) * sectorsize, F_SEEK_SET );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- memset( testbuffer, 'b' + pos, sectorsize );
- if ( f_write( testbuffer, 1, sectorsize, file ) != sectorsize )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
- }
-
- fname_pos = 1;
- for ( pos = 0 ; pos < 2 ; pos++ )
- {
- file = f_open( test_fname[fname_pos], "r" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 1, '0' + ( unsigned char ) fname_pos, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- fname_pos = 3;
- }
-
- file = f_open( "test.txt", "r" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize, 'a', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize, 0, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize, 'b', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize, 'c', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( "test.txt" );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- /************************************/
- file = f_open( "test.txt", "w" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, sectorsize - 2, F_SEEK_SET );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- file = f_open( "test.txt", "r+" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- memset( testbuffer, 'f', 2 );
- if ( f_write( testbuffer, 1, 2, file ) != 2 )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, sectorsize - 2, F_SEEK_SET );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- memset( testbuffer, 'g', 3 );
- if ( f_write( testbuffer, 1, 3, file ) != 3 )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- file = f_open( "test.txt", "r+" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, sectorsize * 2, F_SEEK_SET );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- memset( testbuffer, 'h', sectorsize );
- if ( f_write( testbuffer, 1, sectorsize, file ) != sectorsize )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, 0 );
- }
-
- size = f_filelength( "test.txt" );
- if ( size != ( unsigned long ) ( 3 * sectorsize ) )
- {
- return _f_result( __LINE__, size );
- }
-
- fname_pos = 1;
- for ( pos = 0 ; pos < 2 ; pos++ )
- {
- file = f_open( test_fname[fname_pos], "r" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 1, '0' + ( unsigned char ) fname_pos, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- fname_pos = 3;
- }
-
- file = f_open( "test.txt", "r" );
- if ( file == NULL )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 2, 'f', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 4, 0, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( 3, 'g', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize - 1, 0, file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( sectorsize, 'h', file ) )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( "test.txt" );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( test_fname[1] );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( test_fname[3] );
- if ( ret != F_NO_ERROR )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_seeking */
-
-static unsigned char f_opening ( void )
-{
- F_FILE * file;
- F_FILE * file2;
- unsigned char ret;
- unsigned short size, pos;
-
- _f_dump( "f_opening" );
-
-/*test non existing file open r, r+*/
- file = f_open( "file.bin", "r" );
- if ( file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- file = f_open( "file.bin", "r+" );
- if ( file )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*test non existing appends "a" a+*/
- file = f_open( "file.bin", "a" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- file2 = f_open( "file.bin", "a+" ); /*open again*/
- if ( file2 )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, 1 );
- }
-
- ret = f_close( file2 );
- if ( ret != F_ERR_NOTOPEN )
- {
- return _f_result( __LINE__, 2 );
- }
-
-
-/*try to creates it w*/
- file = f_open( "file.bin", "w" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*write 512 times 1*/
- psp_memset( testbuffer, 1, 512 ); /*set all 1*/
- size = (unsigned short)f_write( testbuffer, 1, 512, file ); /*test write*/
- if ( size != 512 )
- {
- return _f_result( __LINE__, size );
- }
-
-/*go back, and read it*/
- ret = f_rewind( file ); /*back to the begining*/
- if ( ret )
- {
- return _f_result( __LINE__, ret ); /*it should fail*/
- }
-
- size = (unsigned short)f_read( testbuffer, 1, 512, file ); /*test read*/
- if ( size )
- {
- return _f_result( __LINE__, size ); /*it should fail*/
- }
-
-/*close and check size*/
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size )
- {
- return _f_result( __LINE__, size ); /*has to be zero*/
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size != 512 )
- {
- return _f_result( __LINE__, size );
- }
-
-/*try to owerwrites it it*/
- file = f_open( "file.bin", "w+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*close and check size*/
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size )
- {
- return _f_result( __LINE__, size ); /*has to be zero*/
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size )
- {
- return _f_result( __LINE__, size );
- }
-
-
-
-/*test non existing appends "a" */
- file = f_open( "file.bin", "r+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
-/*write 512 times 1*/
- psp_memset( testbuffer, 1, 512 ); /*set all 1*/
- size = (unsigned short)f_write( testbuffer, 1, 512, file ); /*test write*/
- if ( size != 512 )
- {
- return _f_result( __LINE__, size );
- }
-
-/*go back, and read it*/
- ret = f_rewind( file ); /*back to the begining*/
- size = (unsigned short)f_read( testbuffer, 1, 512, file ); /*test read*/
- if ( size != 512 )
- {
- return _f_result( __LINE__, size ); /*it should fail*/
- }
-
- ret = f_rewind( file ); /*back to the begining*/
-
-/*write 256 times 2*/
- psp_memset( testbuffer, 2, 512 ); /*set all 2*/
- size = (unsigned short)f_write( testbuffer, 1, 256, file ); /*test write*/
- if ( size != 256 )
- {
- return _f_result( __LINE__, size );
- }
-
- pos = (unsigned short)f_tell( file );
- if ( pos != 256 )
- {
- return _f_result( __LINE__, pos ); /*position has to be 512*/
- }
-
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size )
- {
- return _f_result( __LINE__, size ); /*has to be zero*/
- }
-
-/*close and check size*/
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size != 512 )
- {
- return _f_result( __LINE__, size );
- }
-
-
-/*test non existing appends a+*/
- file = f_open( "file.bin", "a+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- pos = (unsigned short)f_tell( file );
- if ( pos != 512 )
- {
- return _f_result( __LINE__, pos ); /*position has to be 512*/
- }
-
-/*write 512 times 3*/
- psp_memset( testbuffer, 3, 512 ); /*set all 3*/
- size = (unsigned short)f_write( testbuffer, 1, 512, file ); /*test write*/
- if ( size != 512 )
- {
- return _f_result( __LINE__, size );
- }
-
-/*go back, and read it*/
- ret = f_rewind( file ); /*back to the begining*/
- if ( ret )
- {
- return _f_result( __LINE__, ret ); /*it should fail*/
- }
-
- size = (unsigned short)f_read( testbuffer, 1, 512, file ); /*test read*/
- if ( size != 512 )
- {
- return _f_result( __LINE__, size ); /*it should fail*/
- }
-
- pos = (unsigned short)f_tell( file );
- if ( pos != 512 )
- {
- return _f_result( __LINE__, pos ); /*position has to be 512*/
- }
-
-/*close and check size*/
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size != 512 )
- {
- return _f_result( __LINE__, size ); /*has to be zero*/
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "file.bin" );
- if ( size != 1024 )
- {
- return _f_result( __LINE__, size );
- }
-
-/*close again!*/
- ret = f_close( file );
- if ( ret != F_ERR_NOTOPEN )
- {
- return _f_result( __LINE__, pos );
- }
-
- ret = f_delete( "file.bin" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_opening */
-
-static unsigned char f_appending ( void )
-{
- F_FILE * file;
- unsigned short size, tsize, pos;
- unsigned char a, b, ret;
-
- _f_dump( "f_appending" );
-
- _f_deleteall();
-
- for ( tsize = 0, a = 0 ; a < 16 ; a++ )
- {
- file = f_open( "ap.bin", "a" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- psp_memset( testbuffer, a, sizeof( testbuffer ) );
- size = (unsigned short)f_write( testbuffer, 1, a + 128, file );
- if ( size != a + 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- size = (unsigned short)f_filelength( "ap.bin" );
- if ( size != tsize )
- {
- return _f_result( __LINE__, size );
- }
-
- tsize += a + 128;
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "ap.bin" );
- if ( size != tsize )
- {
- return _f_result( __LINE__, size );
- }
- }
-
- file = f_open( "ap.bin", "r" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- for ( tsize = 0, a = 0 ; a < 16 ; a++ )
- {
- if ( checkfilecontent( a + 128, (char)a, file ) )
- {
- return _f_result( __LINE__, a );
- }
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- for ( tsize = 0, a = 0 ; a < 16 ; a++ )
- {
- file = f_open( "ap.bin", "r" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_seek( file, tsize, F_SEEK_SET );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- pos = (unsigned short)f_tell( file );
- if ( pos != tsize )
- {
- return _f_result( __LINE__, pos );
- }
-
- size = (unsigned short)f_read( testbuffer, 1, a + 128, file );
- if ( size != a + 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- for ( b = 0 ; b < a + 128 ; b++ )
- {
- if ( testbuffer[b] != (char)a )
- {
- return _f_result( __LINE__, a );
- }
- }
-
- tsize += a + 128;
-
- pos = (unsigned short)f_tell( file );
- if ( pos != tsize )
- {
- return _f_result( __LINE__, pos );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
- }
-
- ret = f_close( file );
- if ( ret != F_ERR_NOTOPEN )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( "ap.bin" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_appending */
-
-static unsigned char f_writing ( void )
-{
- F_FILE * file;
- unsigned short size;
- unsigned char a, ret;
- F_SPACE before, after;
-
- _f_dump( "f_writing" );
-
- ret = f_getfreespace( &before );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- for ( a = 0 ; a < 4 ; a++ )
- {
- file = f_open( "wr.bin", "w" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- psp_memset( testbuffer, a, sizeof( testbuffer ) );
- size = (unsigned short)f_write( testbuffer, 1, a * 128, file );
- if ( size != a * 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "wr.bin" );
- if ( size != a * 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- file = f_open( "wr.bin", "r" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( a * 128, (char)a, file ) )
- {
- return _f_result( __LINE__, a );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
- }
-
-
- for ( a = 0 ; a < 4 ; a++ )
- {
- file = f_open( "wr.bin", "w+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- psp_memset( testbuffer, a, sizeof( testbuffer ) );
- size = (unsigned short)f_write( testbuffer, 1, a * 128, file );
- if ( size != a * 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned short)f_filelength( "wr.bin" );
- if ( size != a * 128 )
- {
- return _f_result( __LINE__, size );
- }
-
- file = f_open( "wr.bin", "r+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( checkfilecontent( a * 128, (char)a, file ) )
- {
- return _f_result( __LINE__, a );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
- }
-
- ret = f_getfreespace( &after );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( before.bad != after.bad )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.free == after.free )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.used == after.used )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.total != after.total )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.used + before.free != after.used + after.free )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_delete( "wr.bin" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_getfreespace( &after );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- if ( before.bad != after.bad )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.free != after.free )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.used != after.used )
- {
- return _f_result( __LINE__, 0 );
- }
-
- if ( before.total != after.total )
- {
- return _f_result( __LINE__, 0 );
- }
-
- _f_dump( "passed..." );
- return 0;
-} /* f_writing */
-
-static unsigned char f_dots ( void )
-{
- unsigned char ret;
- unsigned char a, size;
- F_FILE * file;
-
- _f_dump( "f_dots" );
-
- ret = f_mkdir( "/tt" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "/tt" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( ".." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( "." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = _f_checkcwd( f_nameconv( "/tt" ) );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( "." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_delete( ".." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( ".." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_mkdir( "..." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- for ( a = 0 ; a < 6 ; a++ )
- {
- char * mode;
- switch ( a )
- {
- case 0:
- mode = "r";
- break;
-
- case 1:
- mode = "r+";
- break;
-
- case 2:
- mode = "w";
- break;
-
- case 3:
- mode = "w+";
- break;
-
- case 4:
- mode = "a";
- break;
-
- case 5:
- mode = "a+";
- break;
-
- default:
- return _f_result( __LINE__, a );
- } /* switch */
-
- file = f_open( ".", mode );
- if ( file )
- {
- return _f_result( __LINE__, a );
- }
-
- file = f_open( "..", mode );
- if ( file )
- {
- return _f_result( __LINE__, a );
- }
-
- file = f_open( "...", mode );
- if ( file )
- {
- return _f_result( __LINE__, a );
- }
- }
-
- size = (unsigned char)f_filelength( "." );
- if ( size )
- {
- return _f_result( __LINE__, size );
- }
-
- size = (unsigned char)f_filelength( ".." );
- if ( size )
- {
- return _f_result( __LINE__, size );
- }
-
- size = (unsigned char)f_filelength( "..." );
- if ( size )
- {
- return _f_result( __LINE__, size );
- }
-
-
- ret = f_chdir( "..." );
- if ( ret != F_ERR_NOTFOUND )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_chdir( ".." );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- ret = f_rmdir( "tt" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- _f_dump( "passed..." );
- return 0;
-} /* f_dots */
-
-
-typedef struct
-{
- unsigned char MagicNum;
- unsigned char Line;
- unsigned char Buf[87];
-} struct_TestFileSysEntry;
-#define NUM_OF_RECORDS 10
-static unsigned char f_rit ( void )
-{
- unsigned char i;
- unsigned char ret;
- F_FILE * File;
- struct_TestFileSysEntry * Entry = (struct_TestFileSysEntry *)( ( ( (long)testbuffer + 3 ) >> 2 ) << 2 );
- unsigned short Pos;
- unsigned char Ch;
- unsigned char Founded;
-
- _f_dump( "f_rit" );
-
- (void)f_delete( "MyTest" );
- File = f_open( "MyTest", "a+" );
- if ( !File )
- {
- return _f_result( __LINE__, 0 );
- }
-
- /* add records */
- for ( i = 0 ; i < NUM_OF_RECORDS ; i++ )
- {
- Ch = (char)( i % 10 );
- Entry->MagicNum = 0xbc;
- Entry->Line = i;
- Entry->Buf[0] = Ch;
- Entry->Buf[10] = (unsigned char)( Ch + 1 );
-
- if ( F_NO_ERROR != f_seek( File, 0, F_SEEK_END ) )
- {
- return _f_result( __LINE__, 0 ); /* Fail, could not go to the end of the file */
- }
-
- if ( sizeof( struct_TestFileSysEntry ) != f_write( (void *)Entry, 1, sizeof( struct_TestFileSysEntry ), File ) )
- {
- return _f_result( __LINE__, 0 ); /* Fail, could not write new entry */
- }
-
- Pos = (unsigned short)f_tell( File );
- if ( ( ( Pos / sizeof( struct_TestFileSysEntry ) ) - 1 ) != i )
- {
- return _f_result( __LINE__, 0 ); /* Fail, wrong file position */
- }
-
- if ( F_NO_ERROR != f_seek( File, (long)( Pos - sizeof( struct_TestFileSysEntry ) ), F_SEEK_SET ) )
- {
- return _f_result( __LINE__, 0 ); /* Fail, could not go to new entry position */
- }
-
- if ( sizeof( struct_TestFileSysEntry ) != f_read( (void *)Entry, 1, sizeof( struct_TestFileSysEntry ), File ) )
- {
- return _f_result( __LINE__, 0 ); /* Fail, could not read the new entry */
- }
-
- if ( ( Entry->MagicNum != 0xbc ) || ( Entry->Line != (int)i ) || ( Entry->Buf[0] != Ch ) || ( Entry->Buf[10] != Ch + 1 ) )
- {
- return _f_result( __LINE__, 0 ); /*Fail, the new entry is corrupted"*/
- }
- }
-
- ret = f_close( File );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- /*Open file again*/
- File = f_open( "MyTest", "a+" );
- if ( !File )
- {
- return _f_result( __LINE__, 0 );
- }
-
- /* read records */
- for ( i = 0 ; i < NUM_OF_RECORDS ; i++ )
- {
- Ch = (char)( i % 10 );
-
- if ( F_NO_ERROR != f_seek( File, 0, F_SEEK_SET ) )
- {
- return _f_result( __LINE__, 0 ); /* Fail, could not go to the start of the file */
- }
-
- Founded = 0;
- while ( sizeof( struct_TestFileSysEntry ) == f_read( (void *)Entry, 1, sizeof( struct_TestFileSysEntry ), File ) )
- {
- if ( ( Entry->MagicNum == 0xbc )
- && ( Entry->Line == (int)i )
- && ( Entry->Buf[0] == Ch )
- && ( Entry->Buf[10] == Ch + 1 ) )
- {
- Founded = 1;
- break;
- }
- }
-
- if ( !Founded )
- {
- return _f_result( __LINE__, i ); /* Entry not founded */
- }
- }
-
- ret = f_close( File );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
-
- ret = f_delete( "MyTest" );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- _f_dump( "passed..." );
-
- return 0;
-} /* f_rit */
-
-
-
-
-static unsigned char f_truncating ( void )
-{
- F_FILE * file;
- unsigned long size;
- unsigned char ret;
-
- _f_dump( "f_truncating" );
-
- file = f_open( "test.bin", "w+" );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- (void)psp_memset( testbuffer, 1, F_MAX_SEEK_TEST );
- size = (unsigned long)f_write( testbuffer, 1, F_MAX_SEEK_TEST, file );
- if ( size != F_MAX_SEEK_TEST )
- {
- return _f_result( __LINE__, size );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- file = f_truncate( "test.bin", F_MAX_SEEK_TEST - 4 );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned long)f_filelength( "test.bin" );
- if ( size != F_MAX_SEEK_TEST - 4 )
- {
- return _f_result( __LINE__, size );
- }
-
-
- file = f_truncate( "test.bin", F_MAX_SEEK_TEST );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned long)f_filelength( "test.bin" );
- if ( size != F_MAX_SEEK_TEST )
- {
- return _f_result( __LINE__, size );
- }
-
-
- file = f_truncate( "test.bin", ( F_MAX_SEEK_TEST / 2 ) - 92 );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- (void)psp_memset( testbuffer, 2, 92 );
- size = (unsigned long)f_write( testbuffer, 1, 92, file );
- if ( size != 92 )
- {
- return _f_result( __LINE__, size );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned long)f_filelength( "test.bin" );
- if ( size != ( F_MAX_SEEK_TEST / 2 ) )
- {
- return _f_result( __LINE__, size );
- }
-
-
- file = f_truncate( "test.bin", 1 );
- if ( !file )
- {
- return _f_result( __LINE__, 0 );
- }
-
- (void)psp_memset( testbuffer, 3, 2 );
- size = (unsigned long)f_write( testbuffer, 1, 2, file );
- if ( size != 2 )
- {
- return _f_result( __LINE__, size );
- }
-
- ret = f_close( file );
- if ( ret )
- {
- return _f_result( __LINE__, ret );
- }
-
- size = (unsigned long)f_filelength( "test.bin" );
- if ( size != 3 )
- {
- return _f_result( __LINE__, size );
- }
-
-
-
- _f_dump( "passed..." );
- return 0;
-} /* f_truncating */
-
-
-void f_dotest ( unsigned char t )
-{
- _f_dump( "File system test started..." );
- _f_dump( "WARNING: The contents of your drive will be destroyed!\n" );
-
- (void)_f_poweron();
-
- switch ( t )
- {
- case 0:
- case 1:
- (void)f_formatting();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 2:
- (void)f_dirtest();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 3:
- (void)f_findingtest();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 4:
- (void)f_powerfail();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 5:
- (void)f_seeking( 128 );
- if ( t )
- {
- break;
- }
-
-#if ( F_MAX_SEEK_TEST > 128 )
-
- /* fall through */
- case 6:
- (void)f_seeking( 256 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 256 )
-
- /* fall through */
- case 7:
- (void)f_seeking( 512 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 512 )
-
- /* fall through */
- case 8:
- (void)f_seeking( 1024 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 1024 )
-
- /* fall through */
- case 9:
- (void)f_seeking( 2048 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 2048 )
-
- /* fall through */
- case 10:
- (void)f_seeking( 4096 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 4096 )
-
- /* fall through */
- case 11:
- (void)f_seeking( 8192 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 8192 )
-
- /* fall through */
- case 12:
- (void)f_seeking( 16384 );
- if ( t )
- {
- break;
- }
-
-#endif
-#if ( F_MAX_SEEK_TEST > 16384 )
-
- /* fall through */
- case 13:
- (void)f_seeking( 32768 );
- if ( t )
- {
- break;
- }
-
-#endif
-
- /* fall through */
- case 14:
- (void)f_opening();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 15:
- (void)f_appending();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 16:
- (void)f_writing();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 17:
- (void)f_dots();
- if ( t )
- {
- break;
- }
-
-
- /* fall through */
- case 18:
- (void)f_rit();
- if ( t )
- {
- break;
- }
-
- case 19:
- (void)f_truncating();
- if ( t )
- {
- break;
- }
-
- break;
- } /* switch */
-
- _f_dump( "End of tests..." );
-} /* f_dotest */
-
-
-/****************************************************************************
- *
- * end of test.c
- *
- ***************************************************************************/
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.h
deleted file mode 100644
index 6d2de8929..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/fat_sl/test/test.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef __TEST_H
-#define __TEST_H
-
-#include "../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5 || VER_FAT_SL_MINOR != 2
- #error Incompatible FAT_SL version number!
-#endif
-
-
-/*
-** Maximum size for seek test.
-** Options: 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768
-*/
-#define F_MAX_SEEK_TEST 16384
-
-
-/*
-** Defines media type for testing.
-** Options: F_FAT12_MEDIA, F_FAT16_MEDIA, F_FAT32_MEDIA
-*/
-#define F_FAT_TYPE F_FAT16_MEDIA
-
-
-void f_dotest ( unsigned char );
-
-#endif /* ifndef _CONFIG_STHIN_TEST_H */
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/media-drv/ram/ramdrv_f.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/media-drv/ram/ramdrv_f.c
deleted file mode 100644
index 0c120e322..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/media-drv/ram/ramdrv_f.c
+++ /dev/null
@@ -1,255 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include "../../api/api_mdriver_ram.h"
-#include "config_mdriver_ram.h"
-#include "../../psp/include/psp_string.h"
-
-#include "../../version/ver_mdriver_ram.h"
-#if VER_MDRIVER_RAM_MAJOR != 1 || VER_MDRIVER_RAM_MINOR != 2
- #error Incompatible MDRIVER_RAM version number!
-#endif
-
-/* The array used as the RAM disk storage. */
-static char ramdrv[ MDRIVER_RAM_VOLUME0_SIZE ];
-
-/* The F_DRIVER structure that is filled with the RAM disk versions of the read
-sector, write sector, etc. functions. */
-static F_DRIVER t_driver;
-
-static const unsigned long maxsector = MDRIVER_RAM_VOLUME0_SIZE / MDRIVER_RAM_SECTOR_SIZE;
-
-/* Disk not initialized yet. */
-static char in_use = 0;
-
-
-/****************************************************************************
- * Read one sector
- ***************************************************************************/
-static int ram_readsector ( F_DRIVER * driver, void * data, unsigned long sector )
-{
- long len;
- char * d = (char *)data;
- char * s;
-
- /* Not used. */
- ( void ) driver;
-
- /* Check for valid sector. */
- if ( sector >= maxsector )
- {
- return MDRIVER_RAM_ERR_SECTOR;
- }
-
- if( in_use == 0 )
- {
- return MDRIVER_RAM_ERR_NOTAVAILABLE;
- }
-
- /* Locate offset into RAM disk for sector. */
- s = ramdrv;
- s += sector * MDRIVER_RAM_SECTOR_SIZE;
- len = MDRIVER_RAM_SECTOR_SIZE;
-
-#if MDRIVER_MEM_LONG_ACCESS
- if ( ( !( len & 3 ) ) && ( !( ( (long)d ) & 3 ) ) && ( !( ( (long)s ) & 3 ) ) )
- {
- long * dd = (long *)d;
- long * ss = (long *)s;
- len >>= 2;
- /* Read words. */
- while ( len-- )
- {
- *dd++ = *ss++;
- }
-
- return MDRIVER_RAM_NO_ERROR;
- }
-
-#endif /* if MDRIVER_MEM_LONG_ACCESS */
-
- /* Read bytes. */
- while ( len-- )
- {
- *d++ = *s++;
- }
-
- return MDRIVER_RAM_NO_ERROR;
-}
-
-/****************************************************************************
- * Write one sector
- ***************************************************************************/
-static int ram_writesector ( F_DRIVER * driver, void * data, unsigned long sector )
-{
- long len;
- char * s = (char *)data;
- char * d;
-
- /* Not used. */
- ( void ) driver;
-
- /* Check for valid sector. */
- if ( sector >= maxsector )
- {
- return MDRIVER_RAM_ERR_SECTOR;
- }
-
- if( in_use == 0 )
- {
- return MDRIVER_RAM_ERR_NOTAVAILABLE;
- }
-
- /* Locate offset into RAM disk for sector. */
- d = ramdrv;
- d += sector * MDRIVER_RAM_SECTOR_SIZE;
- len = MDRIVER_RAM_SECTOR_SIZE;
-
-#if MDRIVER_MEM_LONG_ACCESS
- if ( ( !( len & 3 ) ) && ( !( ( (long)d ) & 3 ) ) && ( !( ( (long)s ) & 3 ) ) )
- {
- long * dd = (long *)d;
- long * ss = (long *)s;
- len >>= 2;
-
- /* Write words. */
- while ( len-- )
- {
- *dd++ = *ss++;
- }
-
- return MDRIVER_RAM_NO_ERROR;
- }
-#endif /* if MDRIVER_MEM_LONG_ACCESS */
-
- /* Write bytes. */
- while ( len-- )
- {
- *d++ = *s++;
- }
-
- return MDRIVER_RAM_NO_ERROR;
-}
-
-
-/****************************************************************************
- *
- * ram_getphy
- *
- * determinate ramdrive physicals
- *
- * INPUTS
- *
- * driver - driver structure
- * phy - this structure has to be filled with physical information
- *
- * RETURNS
- *
- * error code or zero if successful
- *
- ***************************************************************************/
-static int ram_getphy ( F_DRIVER * driver, F_PHY * phy )
-{
- /* Not used. */
- ( void ) driver;
-
- phy->number_of_sectors = maxsector;
- phy->bytes_per_sector = MDRIVER_RAM_SECTOR_SIZE;
-
- return MDRIVER_RAM_NO_ERROR;
-}
-
-
-/****************************************************************************
- *
- * ram_release
- *
- * Releases a drive
- *
- * INPUTS
- *
- * driver_param - driver parameter
- *
- ***************************************************************************/
-static void ram_release ( F_DRIVER * driver )
-{
- /* Not used. */
- ( void ) driver;
-
- /* Disk no longer in use. */
- in_use = 0;
-}
-
-
-/****************************************************************************
- *
- * ram_initfunc
- *
- * this init function has to be passed for highlevel to initiate the
- * driver functions
- *
- * INPUTS
- *
- * driver_param - driver parameter
- *
- * RETURNS
- *
- * driver structure pointer
- *
- ***************************************************************************/
-F_DRIVER * ram_initfunc ( unsigned long driver_param )
-{
- ( void ) driver_param;
-
- if( in_use )
- return NULL;
-
- (void)psp_memset( &t_driver, 0, sizeof( F_DRIVER ) );
-
- t_driver.readsector = ram_readsector;
- t_driver.writesector = ram_writesector;
- t_driver.getphy = ram_getphy;
- t_driver.release = ram_release;
-
- in_use = 1;
-
- return &t_driver;
-} /* ram_initfunc */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_rtc.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_rtc.h
deleted file mode 100644
index a66c50015..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_rtc.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _PSP_RTC_H
-#define _PSP_RTC_H
-
-#include <stdint.h>
-
-#include "../../version/ver_psp_rtc.h"
-#if VER_PSP_RTC_MAJOR != 1
- #error "VER_PSP_RTC_MAJOR invalid"
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-typedef struct
-{
- uint8_t sec;
- uint8_t min;
- uint8_t hour;
- uint8_t day;
- uint8_t month;
- uint16_t year;
-} t_psp_timedate;
-
-void psp_getcurrenttimedate ( t_psp_timedate * p_timedate );
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* _PSP_RTC_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_string.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_string.h
deleted file mode 100644
index 8a4410d0c..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_string.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _PSP_STRING_H_
-#define _PSP_STRING_H_
-
-#include <stddef.h>
-#include <string.h>
-
-#include "../../version/ver_psp_string.h"
-#if VER_PSP_STRING_MAJOR != 1 || VER_PSP_STRING_MINOR != 4
- #error Incompatible PSP_STRING version number!
-#endif
-
-#define psp_memcpy( d, s, l ) memcpy( ( d ), ( s ), (size_t)( l ) )
-#define psp_memmove( d, s, l ) memmove( ( d ), ( s ), (size_t)( l ) )
-#define psp_memset( d, c, l ) memset( ( d ), ( c ), (size_t)( l ) )
-#define psp_memcmp( s1, s2, l ) memcmp( ( s1 ), ( s2 ), (size_t)( l ) )
-#define psp_strnlen( s, l ) strnlen( ( s ), ( size_t )( l ) )
-#define psp_strncat( d, s, l ) strncat( ( d ), ( s ), (size_t)( l ) )
-#define psp_strncpy( d, s, l ) strncpy( ( d ), ( s ), (size_t)( l ) )
-#define psp_strncmp( s1, s2, l ) strncmp( ( s1 ), ( s2 ), (size_t)( l ) )
-
-#endif /* ifndef _PSP_STRING_H_ */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.c
deleted file mode 100644
index 5295424bb..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.c
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include <stdio.h>
-#include "psp_test.h"
-#include "config_fat_sl.h"
-#include "config_mdriver_ram.h"
-#include "../../../api/fat_sl.h"
-#include "../../../api/api_mdriver_ram.h"
-
-#include "../../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5
- #error Incompatible FAT_SL version number!
-#endif
-#include "../../../version/ver_psp_fat_sl.h"
-#if VER_PSP_FAT_FAT_SL_MAJOR != 1 || VER_PSP_FAT_FAT_SL_MINOR != 2
- #error Incompatible PSP_FAT_FAT_SL version number!
-#endif
-
-#define PRINT_BUFFER_SIZE 64
-
-extern void __printbuf ( char * buf, int len );
-
-/* Use to display text (printf). */
-void _f_dump ( char * s )
-{
- printf( "%s\r\n", s );
-}
-
-/* Use to display test result (printf). */
-uint8_t _f_result ( int linenum, uint32_t result )
-{
- printf( "Error:%d/%ld\r\n", linenum, result );
- return 0;
-}
-
-/* Use to build file system (mount). */
-uint8_t _f_poweron ( void )
-{
- f_delvolume();
- return f_initvolume( ram_initfunc );
-}
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.h
deleted file mode 100644
index 15e632f2a..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/fat_sl/psp_test.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _PSP_FAT_FAT_SL_H
-#define _PSP_FAT_FAT_SL_H
-
-#include <stdint.h>
-#include "../../../psp/include/psp_string.h"
-
-#include "../../../version/ver_fat_sl.h"
-#if VER_FAT_SL_MAJOR != 5
- #error Incompatible FAT_SL version number!
-#endif
-#include "../../../version/ver_psp_fat_sl.h"
-#if VER_PSP_FAT_FAT_SL_MAJOR != 1 || VER_PSP_FAT_FAT_SL_MINOR != 2
- #error Incompatible PSP_FAT_FAT_SL version number!
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Use to display text (printf). */
-void _f_dump ( char * s );
-
-/* Use to display test result (printf). */
-uint8_t _f_result ( int linenum, uint32_t result );
-
-/* Use to build file system (mount). */
-uint8_t _f_poweron ( void );
-
-#ifdef __cplusplus
-}
-#endif
-
-
-#endif /* _PSP_FAT_FAT_SL_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/rtc/psp_rtc.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/rtc/psp_rtc.c
deleted file mode 100644
index afa6ca4d8..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/target/rtc/psp_rtc.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#include <stdint.h>
-#include <stddef.h>
-#include "../../include/psp_rtc.h"
-
-#include "../../../version/ver_psp_rtc.h"
-#if VER_PSP_RTC_MAJOR != 1
- #error "VER_PSP_RTC_MAJOR invalid"
-#endif
-#if VER_PSP_RTC_MINOR != 0
- #error "VER_PSP_RTC_MINOR invalid"
-#endif
-
-
-/****************************************************************************
- *
- * psp_getcurrenttimedate
- *
- * Need to be ported depending on system, it retreives the
- * current time and date.
- * Please take care of correct roll-over handling.
- * Roll-over problem is to read a date at 23.59.59 and then reading time at
- * 00:00.00.
- *
- * INPUT
- *
- * p_timedate - pointer where to store time and date
- *
- ***************************************************************************/
-void psp_getcurrenttimedate ( t_psp_timedate * p_timedate )
-{
- if ( p_timedate != NULL )
- {
- p_timedate->sec = 0;
- p_timedate->min = 0;
- p_timedate->hour = 12u;
-
- p_timedate->day = 1u;
- p_timedate->month = 1u;
- p_timedate->year = 1980u;
- }
-} /* psp_getcurrenttimedate */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/History.txt b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/History.txt
deleted file mode 100644
index 653b9213e..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/History.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-Changes between V1.0.0 and V1.0.1
-
- + Fix seeking beyond the end of file when the offset was not multiple of
- the sector size, or when the file was empty.
-
- + Seeking test extended to validate seeking/writing on sector boundaries.
-
-
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_fat_sl.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_fat_sl.h
deleted file mode 100644
index 922d32ddd..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_fat_sl.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_FAT_SL_H
-#define _VER_FAT_SL_H
-
-#define VER_FAT_SL_MAJOR 5
-#define VER_FAT_SL_MINOR 2
-
-#endif
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver.h
deleted file mode 100644
index ee581f436..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_MDRIVER_H
-#define _VER_MDRIVER_H
-
-#define VER_MDRIVER_MAJOR 1
-#define VER_MDRIVER_MINOR 0
-
-#endif
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver_ram.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver_ram.h
deleted file mode 100644
index bd2cffaa3..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_mdriver_ram.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_MDRIVER_RAM_H
-#define _VER_MDRIVER_RAM_H
-
-#define VER_MDRIVER_RAM_MAJOR 1
-#define VER_MDRIVER_RAM_MINOR 2
-
-#endif
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_fat_sl.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_fat_sl.h
deleted file mode 100644
index 9cc86933e..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_fat_sl.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_PSP_FAT_FAT_SL_H
-#define _VER_PSP_FAT_FAT_SL_H
-
-#define VER_PSP_FAT_FAT_SL_MAJOR 1
-#define VER_PSP_FAT_FAT_SL_MINOR 2
-
-#endif /* _VER_PSP_FAT_FAT_SL_H */
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_rtc.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_rtc.h
deleted file mode 100644
index 032888eb6..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_rtc.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_PSP_RTC_H
-#define _VER_PSP_RTC_H
-
-#define VER_PSP_RTC_MAJOR 1
-#define VER_PSP_RTC_MINOR 0
-
-#endif
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_string.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_string.h
deleted file mode 100644
index 5d8cd4300..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/version/ver_psp_string.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * FreeRTOS+FAT SL V1.0.1 (C) 2014 HCC Embedded
- *
- * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license
- * terms.
- *
- * FreeRTOS+FAT SL uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+FAT SL is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals who for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+FAT SL into proprietary software for distribution in
- * any form. Commercial licenses can be purchased from
- * http://shop.freertos.org/fat_sl and do not require any source files to be
- * changed.
- *
- * FreeRTOS+FAT SL is distributed in the hope that it will be useful. You
- * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as
- * is'. FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the
- * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A
- * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all
- * conditions and terms, be they implied, expressed, or statutory.
- *
- * http://www.FreeRTOS.org
- * http://www.FreeRTOS.org/FreeRTOS-Plus
- *
- */
-
-#ifndef _VER_PSP_STRING_H
-#define _VER_PSP_STRING_H
-
-#define VER_PSP_STRING_MAJOR 1
-#define VER_PSP_STRING_MINOR 4
-
-#endif
-
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-Nabto/readme.txt b/FreeRTOS-Plus/Source/FreeRTOS-Plus-Nabto/readme.txt
deleted file mode 100644
index b5d1bc561..000000000
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-Nabto/readme.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-FreeRTOS+Nabto projects are currently provided in a separate
-download. Following are links to the download page and the
-documentation for the demo that is included in the download.
-
-http://www.freertos.org/FreeRTOS-Plus/Nabto/download_freertos_plus_nabto.shtml
-http://www.freertos.org/FreeRTOS-Plus/Nabto/getting_started_with_FreeRTOS_Plus_Nabto.shtml \ No newline at end of file
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c
index 5f2ff2559..45a282ecf 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_ARP.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c
index 2e3377a71..6e3506891 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DHCP.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c
index 34fffab5a..9c71aa946 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_DNS.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c
index a071baf19..e8b4209db 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_IP.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c
index 9f91f1657..d97e98ccf 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Sockets.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c
index 0e8786f0d..10afecc60 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_Stream_Buffer.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c
index 1f306b01d..4ed21593e 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_IP.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
index 85e948039..a73cc5dca 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_TCP_WIN.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c
index 3595bbd81..09fb0c8b7 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/FreeRTOS_UDP_IP.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h
index 79af0740c..042243d66 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOSIPConfigDefaults.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DEFAULT_IP_CONFIG_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h
index 5caad67a6..5471871fa 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_ARP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_ARP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h
index b432e3c53..ea01ed828 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DHCP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DHCP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h
index 45144912c..41f55d9d0 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_DNS.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DNS_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h
index 59311c419..48a1ea24d 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_IP_H
@@ -153,6 +124,13 @@ typedef enum ePING_REPLY_STATUS
eInvalidData /* A reply was received to an outgoing ping but the payload of the reply was not correct. */
} ePingReplyStatus_t;
+typedef enum eNETWORK_ADDRESS_TYPE
+{
+ eNetWorkAddressTypeIPV4,
+ eNetWorkAddressTypeIPV6,
+ eNetWorkAddressTypeHostName
+} eNetWorkAddressType_t;
+
/* Endian related definitions. */
#if( ipconfigBYTE_ORDER == pdFREERTOS_LITTLE_ENDIAN )
@@ -196,7 +174,7 @@ typedef enum ePING_REPLY_STATUS
static portINLINE BaseType_t FreeRTOS_min_BaseType (BaseType_t a, BaseType_t b);
static portINLINE BaseType_t FreeRTOS_max_BaseType (BaseType_t a, BaseType_t b);
static portINLINE UBaseType_t FreeRTOS_max_UBaseType (UBaseType_t a, UBaseType_t b);
- static portINLINE UBaseType_t FreeRTOS_min_UBaseType (UBaseType_t a, UBaseType_t b);
+ static portINLINE UBaseType_t FreeRTOS_min_UBaseType (UBaseType_t a, UBaseType_t b);
static portINLINE int32_t FreeRTOS_max_int32 (int32_t a, int32_t b) { return a >= b ? a : b; }
@@ -223,6 +201,8 @@ typedef enum ePING_REPLY_STATUS
#define FreeRTOS_round_up(a,d) ( ( ( uint32_t ) ( d ) ) * ( ( ( ( uint32_t ) ( a ) ) + ( ( uint32_t ) ( d ) ) - 1UL ) / ( ( uint32_t ) ( d ) ) ) )
#define FreeRTOS_round_down(a,d) ( ( ( uint32_t ) ( d ) ) * ( ( ( uint32_t ) ( a ) ) / ( ( uint32_t ) ( d ) ) ) )
+ #define FreeRTOS_ms_to_tick(ms) ( ( ms * configTICK_RATE_HZ + 500 ) / 1000 )
+
#define FreeRTOS_max_BaseType(a, b) ( ( ( BaseType_t ) ( a ) ) >= ( ( BaseType_t ) ( b ) ) ? ( ( BaseType_t ) ( a ) ) : ( ( BaseType_t ) ( b ) ) )
#define FreeRTOS_max_UBaseType(a, b) ( ( ( UBaseType_t ) ( a ) ) >= ( ( UBaseType_t ) ( b ) ) ? ( ( UBaseType_t ) ( a ) ) : ( ( UBaseType_t ) ( b ) ) )
#define FreeRTOS_min_BaseType(a, b) ( ( ( BaseType_t ) ( a ) ) <= ( ( BaseType_t ) ( b ) ) ? ( ( BaseType_t ) ( a ) ) : ( ( BaseType_t ) ( b ) ) )
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h
index 6af875add..0b43c56b6 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_IP_Private.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_IP_PRIVATE_H
@@ -477,6 +448,11 @@ void vNetworkSocketsInit( void );
*/
BaseType_t xIPIsNetworkTaskReady( void );
+#if( ipconfigSOCKET_HAS_USER_WAKE_CALLBACK == 1 )
+ struct XSOCKET;
+ typedef void (*SocketWakeupCallback_t)( struct XSOCKET * pxSocket );
+#endif
+
#if( ipconfigUSE_TCP == 1 )
/*
@@ -644,6 +620,10 @@ typedef struct XSOCKET
#if( ipconfigSOCKET_HAS_USER_SEMAPHORE == 1 )
SemaphoreHandle_t pxUserSemaphore;
#endif /* ipconfigSOCKET_HAS_USER_SEMAPHORE */
+ #if( ipconfigSOCKET_HAS_USER_WAKE_CALLBACK == 1 )
+ SocketWakeupCallback_t pxUserWakeCallback;
+ #endif /* ipconfigSOCKET_HAS_USER_WAKE_CALLBACK */
+
#if( ipconfigSUPPORT_SELECT_FUNCTION == 1 )
struct xSOCKET_SET *pxSocketSet;
/* User may indicate which bits are interesting for this socket. */
@@ -717,7 +697,7 @@ BaseType_t vSocketBind( FreeRTOS_Socket_t *pxSocket, struct freertos_sockaddr *
* packet come in out-of-order, an offset will be used to put it in front and
* the head will not change yet.
*/
-int32_t lTCPAddRxdata( FreeRTOS_Socket_t *pxSocket, size_t uxOffset, const uint8_t *pcData, uint32_t ulByteCount );
+int32_t lTCPAddRxdata(FreeRTOS_Socket_t *pxSocket, size_t uxOffset, const uint8_t *pcData, uint32_t ulByteCount);
/*
* Currently called for any important event.
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h
index 87fb7bba3..0af17d475 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Sockets.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_SOCKETS_H
@@ -158,6 +129,11 @@ FreeRTOS_setsockopt(). */
#define FREERTOS_SO_UDP_MAX_RX_PACKETS ( 16 ) /* This option helps to limit the maximum number of packets a UDP socket will buffer */
#endif
+#if( ipconfigSOCKET_HAS_USER_WAKE_CALLBACK == 1 )
+ #define FREERTOS_SO_WAKEUP_CALLBACK ( 17 )
+#endif
+
+
#define FREERTOS_NOT_LAST_IN_FRAGMENTED_PACKET ( 0x80 ) /* For internal use only, but also part of an 8-bit bitwise value. */
#define FREERTOS_FRAGMENTED_PACKET ( 0x40 ) /* For internal use only, but also part of an 8-bit bitwise value. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h
index 9b84f9732..438fb6352 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_Stream_Buffer.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h
index 3d51640b4..8d74b0969 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_IP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_TCP_IP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h
index b55c69722..3c533bf04 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_TCP_WIN.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h
index 5f704afee..8e8c9da0f 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_UDP_IP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_UDP_IP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h
index a8b0bc0b4..15009ec29 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/FreeRTOS_errno_TCP.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_ERRNO_TCP
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h
index 3e30722ee..061081a42 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/IPTraceMacroDefaults.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* This file provides default (empty) implementations for any IP trace macros
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h
index 6eeddc875..9470e9576 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkBufferManagement.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef NETWORK_BUFFER_MANAGEMENT_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h
index 65e235d88..b12adfdb9 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/include/NetworkInterface.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef NETWORK_INTERFACE_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c
index fb860893d..40dfc0cd8 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_1.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/******************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_2.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_2.c
index dd438181c..9421d063c 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_2.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/BufferManagement/BufferAllocation_2.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/******************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_end.h
index 9ce33f4e5..7ac8398be 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_end.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_start.h
index f9335cb5f..8c6efe014 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/GCC/pack_struct_start.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_end.h
index 4a4a4ef5d..d51ea8ee1 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_end.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_start.h
index af79f52cb..ee83b7e21 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/IAR/pack_struct_start.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_end.h
index 5c309204a..0413038a4 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_end.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_start.h
index bca26e7bd..5724c45b0 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/MSVC/pack_struct_start.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_end.h
index da67ba73d..3a2f6011f 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_end.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_start.h
index 31675a845..575babafb 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/Compiler/Renesas/pack_struct_start.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
- *
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
- *
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
- *
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+TCP V2.0.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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ATSAM4E/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ATSAM4E/NetworkInterface.c
index 7a0da571f..88d36a6c5 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ATSAM4E/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ATSAM4E/NetworkInterface.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC17xx/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
index 66d4282b9..6acd5aaff 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
@@ -1,52 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 150406 (C) 2015 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB: ***
- *** ***
- *** This product is functional and is already being used in commercial ***
- *** products. Be aware however that we are still refining its design, ***
- *** the source code does not yet fully conform to the strict coding and ***
- *** style standards mandated by Real Time Engineers ltd., and the ***
- *** documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * - Open source licensing -
- * While FreeRTOS+TCP is in the lab it is provided only under version two of the
- * GNU General Public License (GPL) (which is different to the standard FreeRTOS
- * license). FreeRTOS+TCP is free to download, use and distribute under the
- * terms of that license provided the copyright notice and this text are not
- * altered or removed from the source files. The GPL V2 text is available on
- * the gnu.org web site, and on the following
- * URL: http://www.FreeRTOS.org/gpl-2.0.txt. Active early adopters may, and
- * solely at the discretion of Real Time Engineers Ltd., be offered versions
- * under a license other then the GPL.
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC18xx/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC18xx/NetworkInterface.c
index 0f1019abc..863ca78f6 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC18xx/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/LPC18xx/NetworkInterface.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c
index 7c715a4eb..e53df3ab7 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/SH2A/NetworkInterface.c
@@ -1,52 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 150406 (C) 2015 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB: ***
- *** ***
- *** This product is functional and is already being used in commercial ***
- *** products. Be aware however that we are still refining its design, ***
- *** the source code does not yet fully conform to the strict coding and ***
- *** style standards mandated by Real Time Engineers ltd., and the ***
- *** documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * - Open source licensing -
- * While FreeRTOS+TCP is in the lab it is provided only under version two of the
- * GNU General Public License (GPL) (which is different to the standard FreeRTOS
- * license). FreeRTOS+TCP is free to download, use and distribute under the
- * terms of that license provided the copyright notice and this text are not
- * altered or removed from the source files. The GPL V2 text is available on
- * the gnu.org web site, and on the following
- * URL: http://www.FreeRTOS.org/gpl-2.0.txt. Active early adopters may, and
- * solely at the discretion of Real Time Engineers Ltd., be offered versions
- * under a license other then the GPL.
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32F7xx/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32F7xx/NetworkInterface.c
index 53a1e9357..8bcf9a317 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32F7xx/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32F7xx/NetworkInterface.c
@@ -4,60 +4,31 @@
*/
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32Fxx/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32Fxx/NetworkInterface.c
index 9d7a7ee2f..a1ae0be33 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32Fxx/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/STM32Fxx/NetworkInterface.c
@@ -4,60 +4,31 @@
*/
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/WinPCap/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/WinPCap/NetworkInterface.c
index 1d92adee7..0c5c9da4c 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/WinPCap/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/WinPCap/NetworkInterface.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* WinPCap includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/NetworkInterface.c
index 6cbda2745..81459b908 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/NetworkInterface.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 200417 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/x_emacpsif_dma.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/x_emacpsif_dma.c
index 7a8f204b9..178ae75c5 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/x_emacpsif_dma.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/Zynq/x_emacpsif_dma.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 200417 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#include "Zynq/x_emacpsif.h"
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/NetworkInterface.c
index 5ed7ae846..61651103f 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/portable/NetworkInterface/ksz8851snl/NetworkInterface.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/Common/FreeRTOS_TCP_server.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/Common/FreeRTOS_TCP_server.c
index a729e42da..f56b72222 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/Common/FreeRTOS_TCP_server.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/Common/FreeRTOS_TCP_server.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_commands.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_commands.c
index 7e49e8305..a2a31f5f3 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_commands.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_commands.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* FreeRTOS includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_server.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_server.c
index 2e75a6355..3c4ede8b1 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_server.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/FTP/FreeRTOS_FTP_server.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_commands.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_commands.c
index cb9462c89..25b54e06e 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_commands.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_commands.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_server.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_server.c
index 0172a228e..90d4d91fc 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_server.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/HTTP/FreeRTOS_HTTP_server.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/NTP/NTPDemo.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/NTP/NTPDemo.c
index fb3861f4b..7572f1f69 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/NTP/NTPDemo.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/NTP/NTPDemo.c
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_FTP_commands.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_FTP_commands.h
index f11675f5d..baf0c77d0 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_FTP_commands.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_FTP_commands.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef __FTPCMD_H__
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_HTTP_commands.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_HTTP_commands.h
index e8f6567b7..e18074d3c 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_HTTP_commands.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_HTTP_commands.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_HTTP_COMMANDS_H
#define FREERTOS_HTTP_COMMANDS_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_TCP_server.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_TCP_server.h
index 13a7f75b3..d6030b9fe 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_TCP_server.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_TCP_server.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_server_private.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_server_private.h
index 355aded2b..5283452f3 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_server_private.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-TCP/protocols/include/FreeRTOS_server_private.h
@@ -1,58 +1,29 @@
/*
- * FreeRTOS+TCP Labs Build 160919 (C) 2016 Real Time Engineers ltd.
- * Authors include Hein Tibosch and Richard Barry
+ * FreeRTOS+TCP V2.0.0
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- *******************************************************************************
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *** ***
- *** ***
- *** FREERTOS+TCP IS STILL IN THE LAB (mainly because the FTP and HTTP ***
- *** demos have a dependency on FreeRTOS+FAT, which is only in the Labs ***
- *** download): ***
- *** ***
- *** FreeRTOS+TCP is functional and has been used in commercial products ***
- *** for some time. Be aware however that we are still refining its ***
- *** design, the source code does not yet quite conform to the strict ***
- *** coding and style standards mandated by Real Time Engineers ltd., and ***
- *** the documentation and testing is not necessarily complete. ***
- *** ***
- *** PLEASE REPORT EXPERIENCES USING THE SUPPORT RESOURCES FOUND ON THE ***
- *** URL: http://www.FreeRTOS.org/contact Active early adopters may, at ***
- *** the sole discretion of Real Time Engineers Ltd., be offered versions ***
- *** under a license other than that described below. ***
- *** ***
- *** ***
- ***** NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ******* NOTE ***
- *******************************************************************************
+ * 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:
*
- * FreeRTOS+TCP can be used under two different free open source licenses. The
- * license that applies is dependent on the processor on which FreeRTOS+TCP is
- * executed, as follows:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * If FreeRTOS+TCP is executed on one of the processors listed under the Special
- * License Arrangements heading of the FreeRTOS+TCP license information web
- * page, then it can be used under the terms of the FreeRTOS Open Source
- * License. If FreeRTOS+TCP is used on any other processor, then it can be used
- * under the terms of the GNU General Public License V2. Links to the relevant
- * licenses follow:
- *
- * The FreeRTOS+TCP License Information Page: http://www.FreeRTOS.org/tcp_license
- * The FreeRTOS Open Source License: http://www.FreeRTOS.org/license
- * The GNU General Public License Version 2: http://www.FreeRTOS.org/gpl-2.0.txt
- *
- * FreeRTOS+TCP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+TCP unless you agree that you use the software 'as is'.
- * FreeRTOS+TCP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/plus
- * http://www.FreeRTOS.org/labs
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c
index 06842535e..d32646244 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DHCP.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c
index 2155bc173..1e0f33a05 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_DNS.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c
index 1b942fdad..bf3487919 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_Sockets.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c
index a4d204b58..804cbb9f0 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/FreeRTOS_UDP_IP.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
index 010c30d3b..20d17174d 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOSIPConfigDefaults.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DEFAULT_IP_CONFIG_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DHCP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DHCP.h
index 930ef492d..236cab91c 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DHCP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DHCP.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DHCP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DNS.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DNS.h
index 5e61d3f39..72abc4470 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DNS.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_DNS.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_DNS_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_IP_Private.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_IP_Private.h
index d2c553bec..fe9211d1b 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_IP_Private.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_IP_Private.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_IP_PRIVATE_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_Sockets.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_Sockets.h
index 2dd138b68..720dfcf4f 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_Sockets.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_Sockets.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_UDP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_UDP_IP.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_UDP_IP.h
index 311e45c4b..901e86412 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_UDP_IP.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/FreeRTOS_UDP_IP.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef FREERTOS_IP_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/IPTraceMacroDefaults.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/IPTraceMacroDefaults.h
index 4f0b54077..06047852b 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/IPTraceMacroDefaults.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/IPTraceMacroDefaults.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* This file provides default (empty) implementations for any IP trace macros
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkBufferManagement.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkBufferManagement.h
index 5d8efc0a8..60c0be17a 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkBufferManagement.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkBufferManagement.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef NETWORK_BUFFER_MANAGEMENT_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkInterface.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkInterface.h
index 7aa3849a8..909b6bf54 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkInterface.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/include/NetworkInterface.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef NETWORK_INTERFACE_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_1.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_1.c
index 2f2a9b507..8ed5fea71 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_1.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_1.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_2.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_2.c
index dadfd9c28..a4b829a54 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_2.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/BufferManagement/BufferAllocation_2.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/******************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_end.h
index 2ce162efd..578328087 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_end.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_start.h
index a809ba283..a4a6b7f2d 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/GCC/pack_struct_start.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_end.h
index 5cdd99bd2..cebeab316 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_end.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_start.h
index c11e50cfc..5dd389711 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/MSVC/pack_struct_start.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_end.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_end.h
index 104f206dd..45bf23cb9 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_end.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_end.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_start.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_start.h
index 4390c0760..f24191e14 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_start.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/Compiler/Renesas/pack_struct_start.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
- *
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
- *
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
- *
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * FreeRTOS+UDP V1.0.4
+ * 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. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
+ *
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/*****************************************************************************
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC17xx/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
index f667016a4..290b9f58f 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC17xx/NetworkInterface.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/NetworkInterface.c
index 08125578a..b59eda24e 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/NetworkInterface.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.c
index 332f3bda1..e74240e48 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* FreeRTOS includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.h b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.h
index 3acf30e8f..b3e95c1dd 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.h
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/LPC18xx/Using_LPCOpen_Library/lpc18xx_43xx_EMAC_LPCOpen.h
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
#ifndef LPC18xx_43xx_EMAC_H
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c
index c25c0c31f..bdc748cd8 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SAM4E/NetworkInterface.c
@@ -1,41 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a pure GPL open source license (as opposed to the modified GPL license
- * under which FreeRTOS is distributed) or a commercial license. Details of
- * both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SH2A/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SH2A/NetworkInterface.c
index d4ebee222..4fcb4c38b 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SH2A/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/SH2A/NetworkInterface.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* Standard includes. */
diff --git a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/WinPCap/NetworkInterface.c b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/WinPCap/NetworkInterface.c
index 1d823367f..44f43234d 100644
--- a/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/WinPCap/NetworkInterface.c
+++ b/FreeRTOS-Plus/Source/FreeRTOS-Plus-UDP/portable/NetworkInterface/WinPCap/NetworkInterface.c
@@ -1,43 +1,29 @@
/*
- * FreeRTOS+UDP V1.0.4 (C) 2014 Real Time Engineers ltd.
- * All rights reserved
+ * FreeRTOS+UDP V1.0.4
+ * Copyright (C) 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
- * This file is part of the FreeRTOS+UDP distribution. The FreeRTOS+UDP license
- * terms are different to the FreeRTOS license terms.
+ * 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:
*
- * FreeRTOS+UDP uses a dual license model that allows the software to be used
- * under a standard GPL open source license, or a commercial license. The
- * standard GPL license (unlike the modified GPL license under which FreeRTOS
- * itself is distributed) requires that all software statically linked with
- * FreeRTOS+UDP is also distributed under the same GPL V2 license terms.
- * Details of both license options follow:
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software. If you wish to use our Amazon
+ * FreeRTOS name, please do so in a fair use way that does not cause confusion.
*
- * - Open source licensing -
- * FreeRTOS+UDP is a free download and may be used, modified, evaluated and
- * distributed without charge provided the user adheres to version two of the
- * GNU General Public License (GPL) and does not remove the copyright notice or
- * this text. The GPL V2 text is available on the gnu.org web site, and on the
- * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.
- *
- * - Commercial licensing -
- * Businesses and individuals that for commercial or other reasons cannot comply
- * with the terms of the GPL V2 license must obtain a commercial license before
- * incorporating FreeRTOS+UDP into proprietary software for distribution in any
- * form. Commercial licenses can be purchased from http://shop.freertos.org/udp
- * and do not require any source files to be changed.
- *
- * FreeRTOS+UDP is distributed in the hope that it will be useful. You cannot
- * use FreeRTOS+UDP unless you agree that you use the software 'as is'.
- * FreeRTOS+UDP is provided WITHOUT ANY WARRANTY; without even the implied
- * warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. Real Time Engineers Ltd. disclaims all conditions and terms, be they
- * implied, expressed, or statutory.
- *
- * 1 tab == 4 spaces!
+ * 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://www.FreeRTOS.org
- * http://www.FreeRTOS.org/udp
+ * http://aws.amazon.com/freertos
*
+ * 1 tab == 4 spaces!
*/
/* WinPCap includes. */