t

Fork of mbed-dev by mbed official

Committer:
Kojto
Date:
Thu Aug 03 13:13:39 2017 +0100
Revision:
171:19eb464bc2be
Parent:
170:e3b6fe271b81
Child:
177:447f873cad2f
This updates the lib to the mbed lib v 148

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 160:d5399cc887bb 1
<> 160:d5399cc887bb 2 /** \addtogroup platform */
<> 160:d5399cc887bb 3 /** @{*/
<> 160:d5399cc887bb 4 /* mbed Microcontroller Library
<> 160:d5399cc887bb 5 * Copyright (c) 2006-2013 ARM Limited
<> 160:d5399cc887bb 6 *
<> 160:d5399cc887bb 7 * Licensed under the Apache License, Version 2.0 (the "License");
<> 160:d5399cc887bb 8 * you may not use this file except in compliance with the License.
<> 160:d5399cc887bb 9 * You may obtain a copy of the License at
<> 160:d5399cc887bb 10 *
<> 160:d5399cc887bb 11 * http://www.apache.org/licenses/LICENSE-2.0
<> 160:d5399cc887bb 12 *
<> 160:d5399cc887bb 13 * Unless required by applicable law or agreed to in writing, software
<> 160:d5399cc887bb 14 * distributed under the License is distributed on an "AS IS" BASIS,
<> 160:d5399cc887bb 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 160:d5399cc887bb 16 * See the License for the specific language governing permissions and
<> 160:d5399cc887bb 17 * limitations under the License.
<> 160:d5399cc887bb 18 */
<> 160:d5399cc887bb 19 #ifndef MBED_TOOLCHAIN_H
<> 160:d5399cc887bb 20 #define MBED_TOOLCHAIN_H
<> 160:d5399cc887bb 21
<> 160:d5399cc887bb 22 #include "mbed_preprocessor.h"
<> 160:d5399cc887bb 23
<> 160:d5399cc887bb 24
<> 160:d5399cc887bb 25 // Warning for unsupported compilers
<> 160:d5399cc887bb 26 #if !defined(__GNUC__) /* GCC */ \
<> 160:d5399cc887bb 27 && !defined(__CC_ARM) /* ARMCC */ \
<> 160:d5399cc887bb 28 && !defined(__clang__) /* LLVM/Clang */ \
<> 160:d5399cc887bb 29 && !defined(__ICCARM__) /* IAR */
<> 160:d5399cc887bb 30 #warning "This compiler is not yet supported."
<> 160:d5399cc887bb 31 #endif
<> 160:d5399cc887bb 32
<> 160:d5399cc887bb 33
<> 160:d5399cc887bb 34 // Attributes
<> 160:d5399cc887bb 35
<> 160:d5399cc887bb 36 /** MBED_PACKED
<> 160:d5399cc887bb 37 * Pack a structure, preventing any padding from being added between fields.
<> 160:d5399cc887bb 38 *
<> 160:d5399cc887bb 39 * @code
<> 160:d5399cc887bb 40 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 41 *
<> 160:d5399cc887bb 42 * MBED_PACKED(struct) foo {
<> 160:d5399cc887bb 43 * char x;
<> 160:d5399cc887bb 44 * int y;
<> 160:d5399cc887bb 45 * };
<> 160:d5399cc887bb 46 * @endcode
<> 160:d5399cc887bb 47 */
<> 160:d5399cc887bb 48 #ifndef MBED_PACKED
<> 160:d5399cc887bb 49 #if defined(__ICCARM__)
<> 160:d5399cc887bb 50 #define MBED_PACKED(struct) __packed struct
<> 160:d5399cc887bb 51 #else
<> 160:d5399cc887bb 52 #define MBED_PACKED(struct) struct __attribute__((packed))
<> 160:d5399cc887bb 53 #endif
<> 160:d5399cc887bb 54 #endif
<> 160:d5399cc887bb 55
<> 160:d5399cc887bb 56 /** MBED_ALIGN(N)
<> 160:d5399cc887bb 57 * Declare a variable to be aligned on an N-byte boundary.
<> 160:d5399cc887bb 58 *
<> 160:d5399cc887bb 59 * @note
<> 160:d5399cc887bb 60 * IAR does not support alignment greater than word size on the stack
<> 160:d5399cc887bb 61 *
<> 160:d5399cc887bb 62 * @code
<> 160:d5399cc887bb 63 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 64 *
<> 160:d5399cc887bb 65 * MBED_ALIGN(16) char a;
<> 160:d5399cc887bb 66 * @endcode
<> 160:d5399cc887bb 67 */
<> 160:d5399cc887bb 68 #ifndef MBED_ALIGN
<> 160:d5399cc887bb 69 #if defined(__ICCARM__)
<> 160:d5399cc887bb 70 #define MBED_ALIGN(N) _Pragma(MBED_STRINGIFY(data_alignment=N))
<> 160:d5399cc887bb 71 #else
<> 160:d5399cc887bb 72 #define MBED_ALIGN(N) __attribute__((aligned(N)))
<> 160:d5399cc887bb 73 #endif
<> 160:d5399cc887bb 74 #endif
<> 160:d5399cc887bb 75
<> 160:d5399cc887bb 76 /** MBED_UNUSED
<> 160:d5399cc887bb 77 * Declare a function argument to be unused, suppressing compiler warnings
<> 160:d5399cc887bb 78 *
<> 160:d5399cc887bb 79 * @code
<> 160:d5399cc887bb 80 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 81 *
<> 160:d5399cc887bb 82 * void foo(MBED_UNUSED int arg) {
<> 160:d5399cc887bb 83 *
<> 160:d5399cc887bb 84 * }
<> 160:d5399cc887bb 85 * @endcode
<> 160:d5399cc887bb 86 */
<> 160:d5399cc887bb 87 #ifndef MBED_UNUSED
<> 160:d5399cc887bb 88 #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM)
<> 160:d5399cc887bb 89 #define MBED_UNUSED __attribute__((__unused__))
<> 160:d5399cc887bb 90 #else
<> 160:d5399cc887bb 91 #define MBED_UNUSED
<> 160:d5399cc887bb 92 #endif
<> 160:d5399cc887bb 93 #endif
<> 160:d5399cc887bb 94
<> 160:d5399cc887bb 95 /** MBED_WEAK
<> 160:d5399cc887bb 96 * Mark a function as being weak.
Kojto 171:19eb464bc2be 97 *
Kojto 171:19eb464bc2be 98 * @note
Kojto 171:19eb464bc2be 99 * Functions should only be marked as weak in the source file. The header file
Kojto 171:19eb464bc2be 100 * should contain a regular function declaration to insure the function is emitted.
Kojto 171:19eb464bc2be 101 * A function marked weak will not be emitted if an alternative non-weak
Kojto 171:19eb464bc2be 102 * implementation is defined.
<> 160:d5399cc887bb 103 *
<> 160:d5399cc887bb 104 * @note
Kojto 171:19eb464bc2be 105 * Weak functions are not friendly to making code re-usable, as they can only
<> 160:d5399cc887bb 106 * be overridden once (and if they are multiply overridden the linker will emit
<> 160:d5399cc887bb 107 * no warning). You should not normally use weak symbols as part of the API to
<> 160:d5399cc887bb 108 * re-usable modules.
<> 160:d5399cc887bb 109 *
<> 160:d5399cc887bb 110 * @code
<> 160:d5399cc887bb 111 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 112 *
<> 160:d5399cc887bb 113 * MBED_WEAK void foo() {
<> 160:d5399cc887bb 114 * // a weak implementation of foo that can be overriden by a definition
<> 160:d5399cc887bb 115 * // without __weak
<> 160:d5399cc887bb 116 * }
<> 160:d5399cc887bb 117 * @endcode
<> 160:d5399cc887bb 118 */
<> 160:d5399cc887bb 119 #ifndef MBED_WEAK
<> 160:d5399cc887bb 120 #if defined(__ICCARM__)
<> 160:d5399cc887bb 121 #define MBED_WEAK __weak
<> 160:d5399cc887bb 122 #else
<> 160:d5399cc887bb 123 #define MBED_WEAK __attribute__((weak))
<> 160:d5399cc887bb 124 #endif
<> 160:d5399cc887bb 125 #endif
<> 160:d5399cc887bb 126
<> 160:d5399cc887bb 127 /** MBED_PURE
<> 160:d5399cc887bb 128 * Hint to the compiler that a function depends only on parameters
<> 160:d5399cc887bb 129 *
<> 160:d5399cc887bb 130 * @code
<> 160:d5399cc887bb 131 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 132 *
<> 160:d5399cc887bb 133 * MBED_PURE int foo(int arg){
<> 160:d5399cc887bb 134 * // no access to global variables
<> 160:d5399cc887bb 135 * }
<> 160:d5399cc887bb 136 * @endcode
<> 160:d5399cc887bb 137 */
<> 160:d5399cc887bb 138 #ifndef MBED_PURE
<> 160:d5399cc887bb 139 #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM)
<> 160:d5399cc887bb 140 #define MBED_PURE __attribute__((const))
<> 160:d5399cc887bb 141 #else
<> 160:d5399cc887bb 142 #define MBED_PURE
<> 160:d5399cc887bb 143 #endif
<> 160:d5399cc887bb 144 #endif
<> 160:d5399cc887bb 145
Kojto 170:e3b6fe271b81 146 /** MBED_NOINLINE
Kojto 170:e3b6fe271b81 147 * Declare a function that must not be inlined.
Kojto 170:e3b6fe271b81 148 *
Kojto 170:e3b6fe271b81 149 * @code
Kojto 170:e3b6fe271b81 150 * #include "mbed_toolchain.h"
Kojto 170:e3b6fe271b81 151 *
Kojto 170:e3b6fe271b81 152 * MBED_NOINLINE void foo() {
Kojto 170:e3b6fe271b81 153 *
Kojto 170:e3b6fe271b81 154 * }
Kojto 170:e3b6fe271b81 155 * @endcode
Kojto 170:e3b6fe271b81 156 */
Kojto 170:e3b6fe271b81 157 #ifndef MBED_NOINLINE
Kojto 170:e3b6fe271b81 158 #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM)
Kojto 170:e3b6fe271b81 159 #define MBED_NOINLINE __attribute__((noinline))
Kojto 170:e3b6fe271b81 160 #elif defined(__ICCARM__)
Kojto 170:e3b6fe271b81 161 #define MBED_NOINLINE _Pragma("inline=never")
Kojto 170:e3b6fe271b81 162 #else
Kojto 170:e3b6fe271b81 163 #define MBED_NOINLINE
Kojto 170:e3b6fe271b81 164 #endif
Kojto 170:e3b6fe271b81 165 #endif
Kojto 170:e3b6fe271b81 166
<> 160:d5399cc887bb 167 /** MBED_FORCEINLINE
<> 160:d5399cc887bb 168 * Declare a function that must always be inlined. Failure to inline
<> 160:d5399cc887bb 169 * such a function will result in an error.
<> 160:d5399cc887bb 170 *
<> 160:d5399cc887bb 171 * @code
<> 160:d5399cc887bb 172 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 173 *
<> 160:d5399cc887bb 174 * MBED_FORCEINLINE void foo() {
<> 160:d5399cc887bb 175 *
<> 160:d5399cc887bb 176 * }
<> 160:d5399cc887bb 177 * @endcode
<> 160:d5399cc887bb 178 */
<> 160:d5399cc887bb 179 #ifndef MBED_FORCEINLINE
<> 160:d5399cc887bb 180 #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM)
<> 160:d5399cc887bb 181 #define MBED_FORCEINLINE static inline __attribute__((always_inline))
<> 160:d5399cc887bb 182 #elif defined(__ICCARM__)
<> 160:d5399cc887bb 183 #define MBED_FORCEINLINE _Pragma("inline=forced") static
<> 160:d5399cc887bb 184 #else
<> 160:d5399cc887bb 185 #define MBED_FORCEINLINE static inline
<> 160:d5399cc887bb 186 #endif
<> 160:d5399cc887bb 187 #endif
<> 160:d5399cc887bb 188
<> 160:d5399cc887bb 189 /** MBED_NORETURN
<> 160:d5399cc887bb 190 * Declare a function that will never return.
<> 160:d5399cc887bb 191 *
<> 160:d5399cc887bb 192 * @code
<> 160:d5399cc887bb 193 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 194 *
<> 160:d5399cc887bb 195 * MBED_NORETURN void foo() {
<> 160:d5399cc887bb 196 * // must never return
<> 160:d5399cc887bb 197 * while (1) {}
<> 160:d5399cc887bb 198 * }
<> 160:d5399cc887bb 199 * @endcode
<> 160:d5399cc887bb 200 */
<> 160:d5399cc887bb 201 #ifndef MBED_NORETURN
<> 160:d5399cc887bb 202 #if defined(__GNUC__) || defined(__clang__) || defined(__CC_ARM)
<> 160:d5399cc887bb 203 #define MBED_NORETURN __attribute__((noreturn))
<> 160:d5399cc887bb 204 #elif defined(__ICCARM__)
<> 160:d5399cc887bb 205 #define MBED_NORETURN __noreturn
<> 160:d5399cc887bb 206 #else
<> 160:d5399cc887bb 207 #define MBED_NORETURN
<> 160:d5399cc887bb 208 #endif
<> 160:d5399cc887bb 209 #endif
<> 160:d5399cc887bb 210
<> 160:d5399cc887bb 211 /** MBED_UNREACHABLE
<> 160:d5399cc887bb 212 * An unreachable statement. If the statement is reached,
<> 160:d5399cc887bb 213 * behaviour is undefined. Useful in situations where the compiler
<> 160:d5399cc887bb 214 * cannot deduce the unreachability of code.
<> 160:d5399cc887bb 215 *
<> 160:d5399cc887bb 216 * @code
<> 160:d5399cc887bb 217 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 218 *
<> 160:d5399cc887bb 219 * void foo(int arg) {
<> 160:d5399cc887bb 220 * switch (arg) {
<> 160:d5399cc887bb 221 * case 1: return 1;
<> 160:d5399cc887bb 222 * case 2: return 2;
<> 160:d5399cc887bb 223 * ...
<> 160:d5399cc887bb 224 * }
<> 160:d5399cc887bb 225 * MBED_UNREACHABLE;
<> 160:d5399cc887bb 226 * }
<> 160:d5399cc887bb 227 * @endcode
<> 160:d5399cc887bb 228 */
<> 160:d5399cc887bb 229 #ifndef MBED_UNREACHABLE
<> 160:d5399cc887bb 230 #if (defined(__GNUC__) || defined(__clang__)) && !defined(__CC_ARM)
<> 160:d5399cc887bb 231 #define MBED_UNREACHABLE __builtin_unreachable()
<> 160:d5399cc887bb 232 #else
<> 160:d5399cc887bb 233 #define MBED_UNREACHABLE while (1)
<> 160:d5399cc887bb 234 #endif
<> 160:d5399cc887bb 235 #endif
<> 160:d5399cc887bb 236
<> 160:d5399cc887bb 237 /** MBED_DEPRECATED("message string")
<> 160:d5399cc887bb 238 * Mark a function declaration as deprecated, if it used then a warning will be
<> 160:d5399cc887bb 239 * issued by the compiler possibly including the provided message. Note that not
<> 160:d5399cc887bb 240 * all compilers are able to display the message.
<> 160:d5399cc887bb 241 *
<> 160:d5399cc887bb 242 * @code
<> 160:d5399cc887bb 243 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 244 *
<> 160:d5399cc887bb 245 * MBED_DEPRECATED("don't foo any more, bar instead")
<> 160:d5399cc887bb 246 * void foo(int arg);
<> 160:d5399cc887bb 247 * @endcode
<> 160:d5399cc887bb 248 */
<> 160:d5399cc887bb 249 #ifndef MBED_DEPRECATED
<> 160:d5399cc887bb 250 #if defined(__CC_ARM)
<> 160:d5399cc887bb 251 #define MBED_DEPRECATED(M) __attribute__((deprecated))
<> 160:d5399cc887bb 252 #elif defined(__GNUC__) || defined(__clang__)
<> 160:d5399cc887bb 253 #define MBED_DEPRECATED(M) __attribute__((deprecated(M)))
<> 160:d5399cc887bb 254 #else
<> 160:d5399cc887bb 255 #define MBED_DEPRECATED(M)
<> 160:d5399cc887bb 256 #endif
<> 160:d5399cc887bb 257 #endif
<> 160:d5399cc887bb 258
<> 160:d5399cc887bb 259 /** MBED_DEPRECATED_SINCE("version", "message string")
<> 160:d5399cc887bb 260 * Mark a function declaration as deprecated, noting that the declaration was
<> 160:d5399cc887bb 261 * deprecated on the specified version. If the function is used then a warning
<> 160:d5399cc887bb 262 * will be issued by the compiler possibly including the provided message.
<> 160:d5399cc887bb 263 * Note that not all compilers are able to display this message.
<> 160:d5399cc887bb 264 *
<> 160:d5399cc887bb 265 * @code
<> 160:d5399cc887bb 266 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 267 *
<> 160:d5399cc887bb 268 * MBED_DEPRECATED_SINCE("mbed-os-5.1", "don't foo any more, bar instead")
<> 160:d5399cc887bb 269 * void foo(int arg);
<> 160:d5399cc887bb 270 * @endcode
<> 160:d5399cc887bb 271 */
<> 160:d5399cc887bb 272 #define MBED_DEPRECATED_SINCE(D, M) MBED_DEPRECATED(M " [since " D "]")
<> 160:d5399cc887bb 273
<> 160:d5399cc887bb 274 /** MBED_CALLER_ADDR()
<> 160:d5399cc887bb 275 * Returns the caller of the current function.
<> 160:d5399cc887bb 276 *
<> 160:d5399cc887bb 277 * @note
<> 160:d5399cc887bb 278 * This macro is only implemented for GCC and ARMCC.
<> 160:d5399cc887bb 279 *
<> 160:d5399cc887bb 280 * @code
<> 160:d5399cc887bb 281 * #include "mbed_toolchain.h"
<> 160:d5399cc887bb 282 *
<> 160:d5399cc887bb 283 * printf("This function was called from %p", MBED_CALLER_ADDR());
<> 160:d5399cc887bb 284 * @endcode
<> 160:d5399cc887bb 285 *
<> 160:d5399cc887bb 286 * @return Address of the calling function
<> 160:d5399cc887bb 287 */
<> 160:d5399cc887bb 288 #ifndef MBED_CALLER_ADDR
<> 160:d5399cc887bb 289 #if (defined(__GNUC__) || defined(__clang__)) && !defined(__CC_ARM)
<> 160:d5399cc887bb 290 #define MBED_CALLER_ADDR() __builtin_extract_return_addr(__builtin_return_address(0))
<> 160:d5399cc887bb 291 #elif defined(__CC_ARM)
<> 160:d5399cc887bb 292 #define MBED_CALLER_ADDR() __builtin_return_address(0)
<> 160:d5399cc887bb 293 #else
<> 160:d5399cc887bb 294 #define MBED_CALLER_ADDR() (NULL)
<> 160:d5399cc887bb 295 #endif
<> 160:d5399cc887bb 296 #endif
<> 160:d5399cc887bb 297
<> 160:d5399cc887bb 298 #ifndef MBED_SECTION
<> 160:d5399cc887bb 299 #if (defined(__GNUC__) || defined(__clang__)) || defined(__CC_ARM)
<> 160:d5399cc887bb 300 #define MBED_SECTION(name) __attribute__ ((section (name)))
<> 160:d5399cc887bb 301 #elif defined(__ICCARM__)
<> 160:d5399cc887bb 302 #define MBED_SECTION(name) _Pragma(MBED_STRINGIFY(location=name))
<> 160:d5399cc887bb 303 #else
<> 160:d5399cc887bb 304 #error "Missing MBED_SECTION directive"
<> 160:d5399cc887bb 305 #endif
<> 160:d5399cc887bb 306 #endif
<> 160:d5399cc887bb 307
AnnaBridge 168:e84263d55307 308 #ifndef MBED_PRINTF
AnnaBridge 168:e84263d55307 309 #if defined(__GNUC__) || defined(__CC_ARM)
AnnaBridge 168:e84263d55307 310 #define MBED_PRINTF(format_idx, first_param_idx) __attribute__ ((__format__(__printf__, format_idx, first_param_idx)))
AnnaBridge 168:e84263d55307 311 #else
AnnaBridge 168:e84263d55307 312 #define MBED_PRINTF(format_idx, first_param_idx)
AnnaBridge 168:e84263d55307 313 #endif
AnnaBridge 168:e84263d55307 314 #endif
AnnaBridge 168:e84263d55307 315
AnnaBridge 168:e84263d55307 316 #ifndef MBED_PRINTF_METHOD
AnnaBridge 168:e84263d55307 317 #if defined(__GNUC__) || defined(__CC_ARM)
AnnaBridge 168:e84263d55307 318 #define MBED_PRINTF_METHOD(format_idx, first_param_idx) __attribute__ ((__format__(__printf__, format_idx+1, first_param_idx+1)))
AnnaBridge 168:e84263d55307 319 #else
AnnaBridge 168:e84263d55307 320 #define MBED_PRINTF_METHOD(format_idx, first_param_idx)
AnnaBridge 168:e84263d55307 321 #endif
AnnaBridge 168:e84263d55307 322 #endif
AnnaBridge 168:e84263d55307 323
AnnaBridge 168:e84263d55307 324 #ifndef MBED_SCANF
AnnaBridge 168:e84263d55307 325 #if defined(__GNUC__) || defined(__CC_ARM)
AnnaBridge 168:e84263d55307 326 #define MBED_SCANF(format_idx, first_param_idx) __attribute__ ((__format__(__scanf__, format_idx, first_param_idx)))
AnnaBridge 168:e84263d55307 327 #else
AnnaBridge 168:e84263d55307 328 #define MBED_SCANF(format_idx, first_param_idx)
AnnaBridge 168:e84263d55307 329 #endif
AnnaBridge 168:e84263d55307 330 #endif
AnnaBridge 168:e84263d55307 331
AnnaBridge 168:e84263d55307 332 #ifndef MBED_SCANF_METHOD
AnnaBridge 168:e84263d55307 333 #if defined(__GNUC__) || defined(__CC_ARM)
AnnaBridge 168:e84263d55307 334 #define MBED_SCANF_METHOD(format_idx, first_param_idx) __attribute__ ((__format__(__scanf__, format_idx+1, first_param_idx+1)))
AnnaBridge 168:e84263d55307 335 #else
AnnaBridge 168:e84263d55307 336 #define MBED_SCANF_METHOD(format_idx, first_param_idx)
AnnaBridge 168:e84263d55307 337 #endif
AnnaBridge 168:e84263d55307 338 #endif
AnnaBridge 168:e84263d55307 339
<> 160:d5399cc887bb 340 // FILEHANDLE declaration
<> 160:d5399cc887bb 341 #if defined(TOOLCHAIN_ARM)
<> 160:d5399cc887bb 342 #include <rt_sys.h>
<> 160:d5399cc887bb 343 #endif
<> 160:d5399cc887bb 344
<> 160:d5399cc887bb 345 #ifndef FILEHANDLE
<> 160:d5399cc887bb 346 typedef int FILEHANDLE;
<> 160:d5399cc887bb 347 #endif
<> 160:d5399cc887bb 348
<> 160:d5399cc887bb 349 // Backwards compatibility
<> 160:d5399cc887bb 350 #ifndef WEAK
<> 160:d5399cc887bb 351 #define WEAK MBED_WEAK
<> 160:d5399cc887bb 352 #endif
<> 160:d5399cc887bb 353
<> 160:d5399cc887bb 354 #ifndef PACKED
<> 160:d5399cc887bb 355 #define PACKED MBED_PACKED()
<> 160:d5399cc887bb 356 #endif
<> 160:d5399cc887bb 357
<> 160:d5399cc887bb 358 #ifndef EXTERN
<> 160:d5399cc887bb 359 #define EXTERN extern
<> 160:d5399cc887bb 360 #endif
<> 160:d5399cc887bb 361
<> 160:d5399cc887bb 362 #endif
<> 160:d5399cc887bb 363
<> 160:d5399cc887bb 364 /** @}*/