1 /**\r
2 * @file tcp3d_osal.h\r
3 *\r
4 * @brief \r
5 * This is the OS adaptation layer for the TCP3D Driver which has \r
6 * been ported for XDC Runtime and BIOS.\r
7 *\r
8 * This is an example of <b> Approach 2 </b> in which the \r
9 * application rebuilds the TCP3D driver with the new definitions.\r
10 *\r
11 * Please refer to the 'tcp3d_osal.h' in the API documentation.\r
12 *\r
13 * \par\r
14 * NOTE:\r
15 * (C) Copyright 2009 Texas Instruments, Inc.\r
16 * \r
17 * Redistribution and use in source and binary forms, with or without \r
18 * modification, are permitted provided that the following conditions \r
19 * are met:\r
20 *\r
21 * Redistributions of source code must retain the above copyright \r
22 * notice, this list of conditions and the following disclaimer.\r
23 *\r
24 * Redistributions in binary form must reproduce the above copyright\r
25 * notice, this list of conditions and the following disclaimer in the \r
26 * documentation and/or other materials provided with the \r
27 * distribution.\r
28 *\r
29 * Neither the name of Texas Instruments Incorporated nor the names of\r
30 * its contributors may be used to endorse or promote products derived\r
31 * from this software without specific prior written permission.\r
32 *\r
33 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
34 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
35 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
36 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
37 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
38 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
39 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
40 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
41 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
42 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
43 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
44 *\r
45 */\r
46 #ifndef __TCP3D_OSAL_H__\r
47 #define __TCP3D_OSAL_H__\r
48 \r
49 #include <xdc/runtime/System.h>\r
50 #include <ti/sysbios/BIOS.h>\r
51 \r
52 /* TCP3D OSAL Logging API is mapped directly to an XDC Runtime API */\r
53 #define Tcp3d_osalLog System_printf\r
54 \r
55 /* TCP3D OSAL memory operation APIs are mapped directly with standard runtime APIs */\r
56 #define Tcp3d_memcpy memcpy\r
57 #define Tcp3d_memset memset\r
58 \r
59 #endif /* __TCP3D_OSAL_H__ */\r
60 \r