diff options
| author | Bernard Xiong <[email protected]> | 2013-05-31 07:15:28 -0700 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2013-05-31 07:15:28 -0700 |
| commit | 8238f850369b82843e6d2cef050a412d9218436c (patch) | |
| tree | af343544a935536d07696879a9561b748c28af5c /include | |
| parent | ac032ad07fa280477d785c41bdedbd2b68d81517 (diff) | |
| parent | e74befca44925f37a4fba93d6b16bd1c578c3e51 (diff) | |
Merge pull request #98 from grissiom/rm48x50
Rm48x50
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 11 | ||||
| -rw-r--r-- | include/rtthread.h | 2 |
2 files changed, 12 insertions, 1 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 */ diff --git a/include/rtthread.h b/include/rtthread.h index 4b81464f18..cc1d90fe91 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -19,7 +19,7 @@ #ifndef __RT_THREAD_H__ #define __RT_THREAD_H__ - + #include <stdarg.h> #include <rtdef.h> #include <rtdebug.h> #include <rtservice.h> |
