1 /*\r
2 *\r
3 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ \r
4 * \r
5 * \r
6 * Redistribution and use in source and binary forms, with or without \r
7 * modification, are permitted provided that the following conditions \r
8 * are met:\r
9 *\r
10 * Redistributions of source code must retain the above copyright \r
11 * notice, this list of conditions and the following disclaimer.\r
12 *\r
13 * Redistributions in binary form must reproduce the above copyright\r
14 * notice, this list of conditions and the following disclaimer in the \r
15 * documentation and/or other materials provided with the \r
16 * distribution.\r
17 *\r
18 * Neither the name of Texas Instruments Incorporated nor the names of\r
19 * its contributors may be used to endorse or promote products derived\r
20 * from this software without specific prior written permission.\r
21 *\r
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
33 *\r
34 */\r
35 \r
36 \r
37 \r
38 #ifndef _TCP3D_DRV_TYPES_H_\r
39 #define _TCP3D_DRV_TYPES_H_\r
40 \r
41 /* c99 types includes */\r
42 #include <stdint.h>\r
43 #include <stdlib.h>\r
44 \r
45 /** @addtogroup TCP3D_DRV_MACRO\r
46 @{ */\r
47 \r
48 /**\r
49 * @brief Key work used with the function definitions to represent them as \r
50 * static and inline type functions.\r
51 */\r
52 #define INLINE static inline\r
53 \r
54 /**\r
55 * @brief Key work for restrict abstracted to support various compilers.\r
56 */\r
57 #define RESTRICT restrict\r
58 \r
59 /**\r
60 * @brief Key word used for indicating the argument as INPUT only.\r
61 */\r
62 #define IN\r
63 \r
64 /**\r
65 * @brief Key word used for indicating the argument as OUTPUT only.\r
66 */\r
67 #define OUT\r
68 \r
69 /**\r
70 * @brief Key word used for indicating the argument as both INPUT and OUTPUT.\r
71 */\r
72 #define INOUT\r
73 \r
74 /**\r
75 @}\r
76 */\r
77 \r
78 #endif /* _TCP3D_DRV_TYPES_H_ */\r