浏览代码

rtdef.h: get back the codes that removed accidentally by d80a471

Grissiom 12 年之前
父节点
当前提交
85822f22b7
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      include/rtdef.h

+ 11 - 0
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 */