|
41 | 41 | * Current version of the FNET supports the following compiler definitions:
|
42 | 42 | * - @c FNET_CFG_COMP_IAR = Used compiler is IAR.
|
43 | 43 | * - @c FNET_CFG_COMP_GNUC = Used compiler is GCC.
|
44 |
| - * - @c FNET_CFG_COMP_UV6 = Used compiler is Keil uVision with armclang. |
| 44 | + * - @c FNET_CFG_COMP_CLANG = Used compiler is Keil uVision with Clang. |
45 | 45 | * - @c FNET_CFG_COMP_UV = Used compiler is Keil uVision with armcc.
|
46 | 46 | * - @c FNET_CFG_COMP_GHS = Used compiler is Green Hills.
|
47 | 47 | * - @c FNET_CFG_COMP_DCC = Used compiler is Diab.
|
|
64 | 64 | #elif (defined(FNET_CFG_COMP_GHS) && FNET_CFG_COMP_GHS)
|
65 | 65 | #define FNET_COMP_STR "GHS"
|
66 | 66 | /* Keil uVision compiler with armclang. */
|
67 |
| -#elif (defined(FNET_CFG_COMP_UV6) && FNET_CFG_COMP_UV6) |
68 |
| - #define FNET_COMP_STR "UV6" |
| 67 | +#elif (defined(FNET_CFG_COMP_CLANG) && FNET_CFG_COMP_CLANG) |
| 68 | + #define FNET_COMP_STR "CLANG" |
69 | 69 | /* Keil uVision compiler with armcc. */
|
70 | 70 | #elif (defined(FNET_CFG_COMP_UV) && FNET_CFG_COMP_UV)
|
71 | 71 | #define FNET_COMP_STR "UV"
|
|
90 | 90 | #elif defined(__ghs__)
|
91 | 91 | #define FNET_CFG_COMP_GHS (1)
|
92 | 92 | #define FNET_COMP_STR "GHS"
|
93 |
| - /* Keil uVision compiler using armclang. */ |
94 |
| - #elif defined(__CC_ARM) || defined(__ARMCC_VERSION) && defined(__GNUC__) |
95 |
| - #define FNET_CFG_COMP_UV6 (1) |
96 |
| - #define FNET_COMP_STR "UV6" |
| 93 | + /* Keil uVision compiler using Clang. */ |
| 94 | + #elif defined(__clang__) |
| 95 | + #define FNET_CFG_COMP_CLANG (1) |
| 96 | + #define FNET_COMP_STR "CLANG" |
97 | 97 | /* Keil uVision compiler using armcc. */
|
98 |
| - #elif defined(__CC_ARM) || defined(__ARMCC_VERSION) |
| 98 | + #elif defined(__CC_ARM) |
99 | 99 | #define FNET_CFG_COMP_UV (1)
|
100 | 100 | #define FNET_COMP_STR "UV"
|
101 | 101 | /* GNU GCC */
|
|
118 | 118 | #ifndef FNET_CFG_COMP_CW
|
119 | 119 | #define FNET_CFG_COMP_CW (0)
|
120 | 120 | #endif
|
121 |
| -#ifndef FNET_CFG_COMP_UV6 |
122 |
| - #define FNET_CFG_COMP_UV6 (0) |
| 121 | +#ifndef FNET_CFG_COMP_CLANG |
| 122 | + #define FNET_CFG_COMP_CLANG (0) |
123 | 123 | #endif
|
124 | 124 | #ifndef FNET_CFG_COMP_UV
|
125 | 125 | #define FNET_CFG_COMP_UV (0)
|
|
0 commit comments