summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-06-23 07:40:32 +0800
committerBernard Xiong <[email protected]>2013-06-23 07:40:32 +0800
commitc5927f51b3dcba72aea4aca26fdb3bffb1d6f763 (patch)
tree6a8ac1e323e765e8f9d77c52f450a2fd61960ad4 /include
parentf837ea41b1a263e2a3dfc2d4d4d9f0dfe31cb670 (diff)
parent0633e9853c6ce4713a28812a1200a2f77a366a40 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index f7b87cc53e..ec4e8179c9 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -147,6 +147,17 @@ typedef rt_base_t rt_off_t; /**< Type for offset */
#define ALIGN(n) __declspec(align(n))
#define rt_inline static __inline
#define RTT_API
+#elif defined (__TI_COMPILER_VERSION__)
+ /* The way that TI compiler set section is different from other(at least
+ * GCC and MDK) compilers. See ARM Optimizing C/C++ Compiler 5.9.3 for more
+ * details. */
+ #define SECTION(x)
+ #define UNUSED
+ #define ALIGN(n)
+ #define rt_inline static inline
+ #define RTT_API
+#else
+ #error not supported tool chain
#endif
/* initialization export */