LegacyTerminology.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 /*!*****************************************************************************
33  * @file LegacyTerminology.h
34  *
35  * @brief Provide a translation layer for legacy terminology
36  *
37  * # How to Enable Backwards Compatibility
38  * Backwards-compatibility for legacy terminology is disabled by default. To
39  * enable the use of legacy terminology, add ENABLE_LEGACY_TERMINOLOGY to your
40  * application's compiler arguments.
41  *
42  * # Overview #
43  * TI is transitioning to use more inclusive terminology. As a result some
44  * language and legacy APIs may be different than what you would expect to see
45  * for certain technology areas. The purpose of this file is to ease porting for
46  * customers who have software on existing platforms still using prior
47  * terminology while moving TI defined software to follow the latest industry
48  * driven standards.
49  *
50  * @warning Using this header may inadvertedly redefine parts of your
51  * application code if that code uses any of the legacy terms as substrings.
52  */
53 
54 #warning "Backwards-compatibility for legacy terminology will be removed in a \
55 future release. Please see the release notes for more information."
56 
57 /* Settings to support SPI.h */
58 #define SPI_MASTER SPI_CONTROLLER
59 #define SPI_SLAVE SPI_PERIPHERAL
60 
61 /* Settings to support I2S.h */
62 #define I2S_MASTER I2S_CONTROLLER
63 #define I2S_SLAVE I2S_TARGET
64 #define MCLKDivider CCLKDivider
65 
66 /* Settings to support I2C.h */
67 #define slaveAddress targetAddress
68 
69 /* Settings to support PDMCC26XX_util.h. Since this driver is not
70  * SysConfig-enabled, we are providing legacy names for the changes therein.
71  */
72 #define mclkPin cclkPin
73 #define mclkDiv cclkDiv
74 #define enableMclkPin enableCclkPin
© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale