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