summaryrefslogtreecommitdiff
path: root/include/rtdef.h
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2013-06-03 06:38:51 +0800
committerBernard Xiong <[email protected]>2013-06-03 06:38:51 +0800
commit3c04d0b0a06f6984829d682dbef4de280a139480 (patch)
tree885fbea1d200aabf499869fe69cd36526c86339f /include/rtdef.h
parent84da2a4dcc0a00ee02a83870990a3a27e5c1c344 (diff)
parent8238f850369b82843e6d2cef050a412d9218436c (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'include/rtdef.h')
-rw-r--r--include/rtdef.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index a0497517b1..b2267292cc 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -145,6 +145,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
/* event length */