Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
fnet_comp_config.h
00001 /************************************************************************** 00002 * 00003 * Copyright (c) 2019 Arm Limited and affiliates. 00004 * Copyright 2011-2016 by Andrey Butok. FNET Community. 00005 * Copyright 2008-2010 by Andrey Butok. Freescale Semiconductor, Inc. 00006 * 00007 *************************************************************************** 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00010 * not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00017 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 * 00021 **********************************************************************/ 00022 /*! 00023 * @brief Compiler-specific default configuration file. 00024 * 00025 ***************************************************************************/ 00026 00027 /************************************************************************ 00028 * !!!DO NOT MODIFY THIS FILE!!! 00029 ************************************************************************/ 00030 00031 #ifndef _FNET_COMP_CONFIG_H_ 00032 00033 #define _FNET_COMP_CONFIG_H_ 00034 00035 /*! @addtogroup fnet_platform_config */ 00036 /*! @{ */ 00037 /**************************************************************************/ /*! 00038 * @def FNET_CFG_COMP_compiler_type 00039 * @brief This is the set of the @c FNET_CFG_COMP_[compiler_type] definitions that 00040 * define a currently used compiler. @n 00041 * Current version of the FNET supports the following compiler definitions: 00042 * - @c FNET_CFG_COMP_IAR = Used compiler is IAR. 00043 * - @c FNET_CFG_COMP_GNUC = Used compiler is GCC. 00044 * - @c FNET_CFG_COMP_CLANG = Used compiler is Keil uVision with Clang. 00045 * - @c FNET_CFG_COMP_UV = Used compiler is Keil uVision with armcc. 00046 * - @c FNET_CFG_COMP_GHS = Used compiler is Green Hills. 00047 * - @c FNET_CFG_COMP_DCC = Used compiler is Diab. 00048 * - @c FNET_CFG_COMP_CW = Used compiler is CodeWarrior. 00049 * @n @n 00050 * Selected compiler definition should be only one and must be defined as 1. 00051 * All others may be defined but must have the 0 value. 00052 * @note If no compiler definition is defined, the used compiler is autodetected. 00053 * 00054 ******************************************************************************/ 00055 #define FNET_CFG_COMP_compiler_type /* Ignore it. Just only for Doxygen documentation */ 00056 00057 /* CW compiler. */ 00058 #if (defined(FNET_CFG_COMP_CW) && FNET_CFG_COMP_CW) 00059 #define FNET_COMP_STR "CW" 00060 /* IAR compiler. */ 00061 #elif (defined(FNET_CFG_COMP_IAR) && FNET_CFG_COMP_IAR) 00062 #define FNET_COMP_STR "IAR" 00063 /* GHS compiler. */ 00064 #elif (defined(FNET_CFG_COMP_GHS) && FNET_CFG_COMP_GHS) 00065 #define FNET_COMP_STR "GHS" 00066 /* Keil uVision compiler with armclang. */ 00067 #elif (defined(FNET_CFG_COMP_CLANG) && FNET_CFG_COMP_CLANG) 00068 #define FNET_COMP_STR "CLANG" 00069 /* Keil uVision compiler with armcc. */ 00070 #elif (defined(FNET_CFG_COMP_UV) && FNET_CFG_COMP_UV) 00071 #define FNET_COMP_STR "UV" 00072 /* GNU GCC */ 00073 #elif (defined(FNET_CFG_COMP_GNUC) && FNET_CFG_COMP_GNUC) 00074 #define FNET_COMP_STR "GCC" 00075 /* Diab DCC */ 00076 #elif (defined(FNET_CFG_COMP_DCC) && FNET_CFG_COMP_DCC) 00077 #define FNET_COMP_STR "DCC" 00078 #endif 00079 00080 #if !defined(FNET_COMP_STR) 00081 /* CW compiler. */ 00082 #if (defined(__MWERKS__) || defined(__CODEWARRIOR__)) 00083 #define FNET_CFG_COMP_CW (1) 00084 #define FNET_COMP_STR "CW" 00085 /* IAR compiler. */ 00086 #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ASM__) || defined(__ICCARM__) 00087 #define FNET_CFG_COMP_IAR (1) 00088 #define FNET_COMP_STR "IAR" 00089 /* GHS compiler. */ 00090 #elif defined(__ghs__) 00091 #define FNET_CFG_COMP_GHS (1) 00092 #define FNET_COMP_STR "GHS" 00093 /* Keil uVision compiler using Clang. */ 00094 #elif defined(__clang__) 00095 #define FNET_CFG_COMP_CLANG (1) 00096 #define FNET_COMP_STR "CLANG" 00097 /* Keil uVision compiler using armcc. */ 00098 #elif defined(__CC_ARM) 00099 #define FNET_CFG_COMP_UV (1) 00100 #define FNET_COMP_STR "UV" 00101 /* GNU GCC */ 00102 #elif defined(__GNUC__) 00103 #define FNET_CFG_COMP_GNUC (1) 00104 #define FNET_COMP_STR "GCC" 00105 /* Diab DCC */ 00106 #elif defined(__DCC__) 00107 #define FNET_CFG_COMP_DCC (1) 00108 #define FNET_COMP_STR "DCC" 00109 #else 00110 #error "It is not possible to detect the compiler. Please set a FNET_CFG_COMP_XXXX parameter." 00111 #endif 00112 #endif 00113 00114 /* Set default value */ 00115 #ifndef FNET_CFG_COMP_IAR 00116 #define FNET_CFG_COMP_IAR (0) 00117 #endif 00118 #ifndef FNET_CFG_COMP_CW 00119 #define FNET_CFG_COMP_CW (0) 00120 #endif 00121 #ifndef FNET_CFG_COMP_CLANG 00122 #define FNET_CFG_COMP_CLANG (0) 00123 #endif 00124 #ifndef FNET_CFG_COMP_UV 00125 #define FNET_CFG_COMP_UV (0) 00126 #endif 00127 #ifndef FNET_CFG_COMP_GNUC 00128 #define FNET_CFG_COMP_GNUC (0) 00129 #endif 00130 #ifndef FNET_CFG_COMP_GHS 00131 #define FNET_CFG_COMP_GHS (0) 00132 #endif 00133 #ifndef FNET_CFG_COMP_DCC 00134 #define FNET_CFG_COMP_DCC (0) 00135 #endif 00136 00137 /*! @} */ 00138 00139 #endif /* _FNET_COMP_CONFIG_H_ */
Generated on Tue Jul 12 2022 13:54:22 by
1.7.2