caf68b25c57bf07263df9dd4608b85841b53c7f5
1 %%{\r
2 /*!\r
3 * This template implements the rmver.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 = "\""+"RM LLD 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 _RMVER_H\r
34 #define _RMVER_H\r
35 \r
36 #ifdef __cplusplus\r
37 extern "C" {\r
38 #endif\r
39 \r
40 /* ============================================================= */\r
41 /**\r
42 * @file rmver.h\r
43 *\r
44 * path ti/drv/rm/rmver.h\r
45 *\r
46 * @brief Resource Manager LLD Version Definitions\r
47 *\r
48 * ============================================================\r
49 * Copyright (c) Texas Instruments Incorporated 2009-2012\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 RM LLD 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 RM_LLD_VERSION_ID `versionID`\r
87 \r
88 /**\r
89 * @brief This is the version string which describes the RM LLD along with the\r
90 * date and build information.\r
91 */\r
92 #define RM_LLD_VERSION_STR `versionStr`\r
93 \r
94 \r
95 #ifdef __cplusplus\r
96 }\r
97 #endif\r
98 \r
99 \r
100 #endif /* _RMVER_H */\r