]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/tcp3d-lld.git/blob - tcp3dver.h.xdt
MCSDK 3.0: workaround to fix compilation issue for device specific CSL
[keystone-rtos/tcp3d-lld.git] / tcp3dver.h.xdt
1 %%{\r
2 /*!\r
3  *  This template implements the tcp3dver.h\r
4  */  \r
5   /* Versioning */\r
6   var ver = this;\r
7   var ver1 = [00,00,00,00];\r
8   var ver2 = [00,00,00,00];\r
9   \r
10   for each(i=0;i<ver.length;i++)\r
11   {\r
12       if(String(ver[i]).length < 2)\r
13       {\r
14         ver1[i]="0"+ver[i];\r
15       }\r
16       else\r
17       {\r
18         ver1[i] = ver[i];\r
19       }\r
20       \r
21       ver2[i] = Number(ver[i]).toString(16).toUpperCase();\r
22       \r
23       if(String(ver2[i]).length < 2)\r
24       {\r
25         ver2[i]="0"+ver2[i];\r
26       }\r
27   }\r
28   \r
29   var versionStr = "\""+"TCP3D Driver Revision: "+ver1[0]+"."+ver1[1]+"."+ver1[2]+"."+ver1[3]+"\"";\r
30   var versionID = "(0x"+ver2[0]+ver2[1]+ver2[2]+ver2[3]+")";\r
31 \r
32 %%}\r
33 #ifndef _TCP3DVER_H\r
34 #define _TCP3DVER_H\r
35 \r
36 #ifdef __cplusplus\r
37 extern "C" {\r
38 #endif\r
39 \r
40 /* ============================================================= */\r
41 /**\r
42  *   @file  tcp3dver.h\r
43  *\r
44  *   path  ti/drv/tcp3d/tcp3dver.h\r
45  *\r
46  *   @brief  TCP3D Driver Version Definitions\r
47  *\r
48  *  ============================================================\r
49  *  Copyright (c) Texas Instruments Incorporated 2009-2011\r
50  * \r
51  *  Redistribution and use in source and binary forms, with or without \r
52  *  modification, are permitted provided that the following conditions \r
53  *  are met:\r
54  *\r
55  *    Redistributions of source code must retain the above copyright \r
56  *    notice, this list of conditions and the following disclaimer.\r
57  *\r
58  *    Redistributions in binary form must reproduce the above copyright\r
59  *    notice, this list of conditions and the following disclaimer in the \r
60  *    documentation and/or other materials provided with the   \r
61  *    distribution.\r
62  *\r
63  *    Neither the name of Texas Instruments Incorporated nor the names of\r
64  *    its contributors may be used to endorse or promote products derived\r
65  *    from this software without specific prior written permission.\r
66  *\r
67  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \r
68  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT \r
69  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\r
70  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT \r
71  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, \r
72  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT \r
73  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
74  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
75  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT \r
76  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE \r
77  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
78  *\r
79 */\r
80 \r
81 /**\r
82  * @brief   This is the TCP3D Driver Version. Versions numbers are encoded in the following \r
83  * format:\r
84  *  0xAABBCCDD -> Arch (AA); API Changes (BB); Major (CC); Minor (DD)\r
85  */\r
86 #define TCP3D_DRV_VERSION_ID                   `versionID`\r
87 \r
88 /**\r
89  * @brief   This is the version string which describes the TCP3D Driver along with the\r
90  * date and build information.\r
91  */\r
92 #define TCP3D_DRV_VERSION_STR                  `versionStr`\r
93 \r
94 \r
95 #ifdef __cplusplus\r
96 }\r
97 #endif\r
98   \r
99 \r
100 #endif  /* _TCP3DVER_H */\r