csl_general.h
Go to the documentation of this file.
00001 /*  ============================================================================
00002  *   Copyright (c) Texas Instruments Inc 2002, 2003, 2004, 2005, 2008
00003  *
00004  *   Use of this software is controlled by the terms and conditions found in the
00005  *   license agreement under which this software has been supplied.
00006  *  ============================================================================
00007  */
00008 
00021 /* ============================================================================
00022  * Revision History
00023  * ================
00024  * 07-Jan-2009 Created
00025  * 28-Apr-2010 Added new macro definitions
00026  * 30-June-2010 Added new macro definitions for platforms
00027  * ============================================================================
00028  */
00029 
00030 #ifndef _CSL_GENERAL_H_
00031 #define _CSL_GENERAL_H_
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 
00037 /*
00038  ******************************************************
00039  * CAUTION: DEFINE EITHER THE MACROS IN PART1 OR PART2.
00040  * DO NOT DEFINE MACROS IN BOTH PARTS.
00041  ******************************************************
00042  */
00043 
00064 /* TMS320VC5505 */
00065 //#define CHIP_VC5505
00066 
00067 /*
00068  * Below macro was the used to indicate TMS320VC5505 in old
00069  * CSL version. Here it is provided for backward compatibility
00070  */
00071 //#define CHIP_5505
00072 
00073 
00074 /* TMS320VC5504 */
00075 //#define CHIP_VC5504
00076 
00077 /*
00078  * Below macro was the used to indicate TMS320VC5504 in old
00079  * CSL version. Here it is provided for backward compatibility
00080  */
00081 //#define CHIP_5504
00082 
00083 /******************************* END OF PART1 *******************************/
00084 
00085 
00086 /* Mapping of the old macros to the new macros */
00087 #ifdef CHIP_5505
00088 #define CHIP_VC5505
00089 #endif
00090 
00091 #ifdef CHIP_5504
00092 #define CHIP_VC5504
00093 #endif
00094 
00095 
00096 
00124 #if (!(defined(CHIP_VC5505) || defined(CHIP_VC5504)))
00125 
00126 /* TMS320C5505 and TMS320C5515 */
00127 #define CHIP_C5505_C5515
00128 
00129 /*
00130  * Below macro was the used to indicate TMS320C5505 and TMS320C5515 in old
00131  * CSL version. Here it is provided for backward compatibility
00132  */
00133 //#define CHIP_5515
00134 
00135 
00136 /* TMS320C5504 and TMS320C5514 */
00137 #define CHIP_C5504_C5514
00138 
00139 /*
00140  * Below macro was the used to indicate TMS320C5504 and TMS320C5514 in old
00141  * CSL version. Here it is provided for backward compatibility
00142  */
00143 //#define CHIP_5514
00144 
00145 #endif
00146 
00147 /******************************* END OF PART2 *******************************/
00148 
00157 #if (!(defined(CHIP_VC5505) || defined(CHIP_VC5504)))
00158 
00159 #define C5515_EVM
00160 
00161 #if (!(defined(C5515_EVM)))
00162 #define C5515_EZDSP
00163 #endif
00164 
00165 #else
00166 
00167 #define VC5505_EVM
00168 
00169 #if (!(defined(VC5505_EVM)))
00170 #define VC5505_EZDSP
00171 #endif
00172 
00173 #endif
00174 /******************************* END OF PART3 *******************************/
00175 
00176 
00177 /* Mapping of the old macros to the new macros */
00178 #ifdef CHIP_5515
00179 #define CHIP_C5505_C5515
00180 #endif
00181 
00182 #ifdef CHIP_5514
00183 #define CHIP_C5504_C5514
00184 #endif
00185 
00186 
00187 #ifdef __cplusplus
00188 }
00189 #endif
00190 
00191 #endif    // _CSL_GENERAL_H_
00192