Преглед на файлове

add TI CCS support micros in rtdef.h

Grissiom преди 12 години
родител
ревизия
9237433030
променени са 1 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 5 2
      include/rtdef.h

+ 5 - 2
include/rtdef.h

@@ -145,10 +145,13 @@ 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_EABI_SUPPORT__)
+#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 ALIGN(n)
     #define rt_inline                   static inline
     #define RTT_API
 #else