]> begriffs open source - freertos/blob - FreeRTOS-Plus/Source/FreeRTOS-Plus-FAT-SL/psp/include/psp_string.h
Add FAT SL code and demo project.
[freertos] / FreeRTOS-Plus / Source / FreeRTOS-Plus-FAT-SL / psp / include / psp_string.h
1 /*\r
2  * FreeRTOS+FAT FS V1.0.0 (C) 2013 HCC Embedded\r
3  *\r
4  * The FreeRTOS+FAT SL license terms are different to the FreeRTOS license \r
5  * terms.\r
6  * \r
7  * FreeRTOS+FAT SL uses a dual license model that allows the software to be used\r
8  * under a pure GPL open source license (as opposed to the modified GPL licence\r
9  * under which FreeRTOS is distributed) or a commercial license.  Details of \r
10  * both license options follow:\r
11  * \r
12  * - Open source licensing -\r
13  * FreeRTOS+FAT SL is a free download and may be used, modified, evaluated and\r
14  * distributed without charge provided the user adheres to version two of the \r
15  * GNU General Public License (GPL) and does not remove the copyright notice or \r
16  * this text.  The GPL V2 text is available on the gnu.org web site, and on the\r
17  * following URL: http://www.FreeRTOS.org/gpl-2.0.txt.\r
18  * \r
19  * - Commercial licensing -\r
20  * Businesses and individuals who for commercial or other reasons cannot comply\r
21  * with the terms of the GPL V2 license must obtain a commercial license before \r
22  * incorporating FreeRTOS+FAT SL into proprietary software for distribution in \r
23  * any form.  Commercial licenses can be purchased from \r
24  * http://shop.freertos.org/fat_sl and do not require any source files to be \r
25  * changed.\r
26  *\r
27  * FreeRTOS+FAT SL is distributed in the hope that it will be useful.  You\r
28  * cannot use FreeRTOS+FAT SL unless you agree that you use the software 'as\r
29  * is'.  FreeRTOS+FAT SL is provided WITHOUT ANY WARRANTY; without even the\r
30  * implied warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A\r
31  * PARTICULAR PURPOSE. Real Time Engineers Ltd. and HCC Embedded disclaims all\r
32  * conditions and terms, be they implied, expressed, or statutory.\r
33  *\r
34  * http://www.FreeRTOS.org\r
35  * http://www.FreeRTOS.org/FreeRTOS-Plus\r
36  *\r
37  */\r
38 \r
39 #ifndef _PSP_STRING_H_\r
40 #define _PSP_STRING_H_\r
41 \r
42 #include <stddef.h>\r
43 #include <string.h>\r
44 \r
45 #include "../../version/ver_psp_string.h"\r
46 #if VER_PSP_STRING_MAJOR != 1 || VER_PSP_STRING_MINOR != 4\r
47  #error Incompatible PSP_STRING version number!\r
48 #endif\r
49 \r
50 #define psp_memcpy( d, s, l )    memcpy( ( d ), ( s ), (size_t)( l ) )\r
51 #define psp_memmove( d, s, l )   memmove( ( d ), ( s ), (size_t)( l ) )\r
52 #define psp_memset( d, c, l )    memset( ( d ), ( c ), (size_t)( l ) )\r
53 #define psp_memcmp( s1, s2, l )  memcmp( ( s1 ), ( s2 ), (size_t)( l ) )\r
54 #define psp_strnlen( s, l )      strnlen( ( s ), ( size_t )( l ) )\r
55 #define psp_strncat( d, s, l )   strncat( ( d ), ( s ), (size_t)( l ) )\r
56 #define psp_strncpy( d, s, l )   strncpy( ( d ), ( s ), (size_t)( l ) )\r
57 #define psp_strncmp( s1, s2, l ) strncmp( ( s1 ), ( s2 ), (size_t)( l ) )\r
58 \r
59 #endif /* ifndef _PSP_STRING_H_ */\r
60 \r