summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-08-09 09:17:28 +0800
committerBernard Xiong <[email protected]>2015-08-09 09:17:28 +0800
commitfc54a74abb7d7de84a81e4b11e402ef6ec278273 (patch)
tree9f5be3a22a428f2991193426dc66b7509ac2bf1f /include/rtdef.h
parent33b95be42a94099255b9ba288756a7b2b794c7b2 (diff)
[BSP] stm32f7-disco cleanup
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index daa35a1d25..2587df9c41 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -94,8 +94,8 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#ifdef __CC_ARM /* ARM Compiler */
#include <stdarg.h>
#define SECTION(x) __attribute__((section(x)))
- #define UNUSED __attribute__((unused))
- #define USED __attribute__((used))
+ #define RT_UNUSED __attribute__((unused))
+ #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __weak
#define rt_inline static __inline
@@ -109,8 +109,8 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#elif defined (__IAR_SYSTEMS_ICC__) /* for IAR Compiler */
#include <stdarg.h>
#define SECTION(x) @ x
- #define UNUSED
- #define USED
+ #define RT_UNUSED
+ #define RT_USED
#define PRAGMA(x) _Pragma(#x)
#define ALIGN(n) PRAGMA(data_alignment=n)
#define WEAK __weak
@@ -130,17 +130,17 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#endif
#define SECTION(x) __attribute__((section(x)))
- #define UNUSED __attribute__((unused))
- #define USED __attribute__((used))
+ #define RT_UNUSED __attribute__((unused))
+ #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
- #define WEAK __attribute__((weak))
+ #define WEAK __attribute__((weak))
#define rt_inline static __inline
#define RTT_API
#elif defined (__ADSPBLACKFIN__) /* for VisualDSP++ Compiler */
#include <stdarg.h>
#define SECTION(x) __attribute__((section(x)))
- #define UNUSED __attribute__((unused))
- #define USED __attribute__((used))
+ #define RT_UNUSED __attribute__((unused))
+ #define RT_USED __attribute__((used))
#define ALIGN(n) __attribute__((aligned(n)))
#define WEAK __attribute__((weak))
#define rt_inline static inline
@@ -148,8 +148,8 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#elif defined (_MSC_VER)
#include <stdarg.h>
#define SECTION(x)
- #define UNUSED
- #define USED
+ #define RT_UNUSED
+ #define RT_USED
#define ALIGN(n) __declspec(align(n))
#define WEAK
#define rt_inline static __inline
@@ -160,11 +160,11 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
* GCC and MDK) compilers. See ARM Optimizing C/C++ Compiler 5.9.3 for more
* details. */
#define SECTION(x)
- #define UNUSED
- #define USED
- #define PRAGMA(x) _Pragma(#x)
+ #define RT_UNUSED
+ #define RT_USED
+ #define PRAGMA(x) _Pragma(#x)
#define ALIGN(n)
- #define WEAK
+ #define WEAK
#define rt_inline static inline
#define RTT_API
#else