Embedded TCP/IP stack  4.7.0
fnet_comp_config.h
1 /**************************************************************************
2 *
3 * Copyright 2008-2018 by Andrey Butok. FNET Community.
4 *
5 ***************************************************************************
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may
8 * not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 *
19 ***************************************************************************
20 *
21 * Compiler-specific default configuration file.
22 *
23 ***************************************************************************/
24 
25 /************************************************************************
26  * !!!DO NOT MODIFY THIS FILE!!!
27  ************************************************************************/
28 
29 #ifndef _FNET_COMP_CONFIG_H_
30 
31 #define _FNET_COMP_CONFIG_H_
32 
35 /**************************************************************************/
52 #define FNET_CFG_COMP_compiler_type /* Ignore it. Just only for Doxygen documentation */
53 
54 /* CW compiler. */
55 #if (defined(FNET_CFG_COMP_CW) && FNET_CFG_COMP_CW)
56  #define FNET_COMP_STR "CW"
57  /* IAR compiler. */
58 #elif (defined(FNET_CFG_COMP_IAR) && FNET_CFG_COMP_IAR)
59  #define FNET_COMP_STR "IAR"
60  /* GHS compiler. */
61 #elif (defined(FNET_CFG_COMP_GHS) && FNET_CFG_COMP_GHS)
62  #define FNET_COMP_STR "GHS"
63  /* Keil uVision compiler. */
64 #elif (defined(FNET_CFG_COMP_UV) && FNET_CFG_COMP_UV)
65  #define FNET_COMP_STR "UV"
66  /* GNU GCC */
67 #elif (defined(FNET_CFG_COMP_GNUC) && FNET_CFG_COMP_GNUC)
68  #define FNET_COMP_STR "GCC"
69  /* Diab DCC */
70 #elif (defined(FNET_CFG_COMP_DCC) && FNET_CFG_COMP_DCC)
71  #define FNET_COMP_STR "DCC"
72 #endif
73 
74 #if !defined(FNET_COMP_STR)
75  /* CW compiler. */
76  #if (defined(__MWERKS__) || defined(__CODEWARRIOR__))
77  #define FNET_CFG_COMP_CW (1)
78  #define FNET_COMP_STR "CW"
79  /* IAR compiler. */
80  #elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ASM__) || defined(__ICCARM__)
81  #define FNET_CFG_COMP_IAR (1)
82  #define FNET_COMP_STR "IAR"
83  /* GHS compiler. */
84  #elif defined(__ghs__)
85  #define FNET_CFG_COMP_GHS (1)
86  #define FNET_COMP_STR "GHS"
87  /* ARM, Keil uVision compiler. */
88  #elif defined(__CC_ARM) || defined(__ARMCC_VERSION)
89  #define FNET_CFG_COMP_UV (1)
90  #define FNET_COMP_STR "UV"
91  /* GNU GCC */
92  #elif defined(__GNUC__)
93  #define FNET_CFG_COMP_GNUC (1)
94  #define FNET_COMP_STR "GCC"
95  /* Diab DCC */
96  #elif defined(__DCC__)
97  #define FNET_CFG_COMP_DCC (1)
98  #define FNET_COMP_STR "DCC"
99  #else
100  #error "It is not possible to detect the compiler. Please set a FNET_CFG_COMP_XXXX parameter."
101  #endif
102 #endif
103 
104 /* Set default value */
105 #ifndef FNET_CFG_COMP_IAR
106  #define FNET_CFG_COMP_IAR (0)
107 #endif
108 #ifndef FNET_CFG_COMP_CW
109  #define FNET_CFG_COMP_CW (0)
110 #endif
111 #ifndef FNET_CFG_COMP_UV
112  #define FNET_CFG_COMP_UV (0)
113 #endif
114 #ifndef FNET_CFG_COMP_GNUC
115  #define FNET_CFG_COMP_GNUC (0)
116 #endif
117 #ifndef FNET_CFG_COMP_GHS
118  #define FNET_CFG_COMP_GHS (0)
119 #endif
120 #ifndef FNET_CFG_COMP_DCC
121  #define FNET_CFG_COMP_DCC (0)
122 #endif
123 
126 #endif /* _FNET_COMP_CONFIG_H_ */

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net