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