Embedded TCP/IP stack: fnet_comp_config.h Source File

FNET

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

© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net