From f51bce3fedcb5aa64514a4259068d85e8c534ab5 Mon Sep 17 00:00:00 2001 From: Grissiom Date: Fri, 24 May 2013 10:04:51 +0800 Subject: add rm48x50 bsp and libcpu We currently only support building with CCS and SCons is not using. bsp/rm48x50/HALCoGen/HALCoGen.{hcg,dil} is the HALCoGen project file. You may need to regenerate the source file as you like, providing that: 1, IRQ is in Dispatch Mode and the table entry is IRQ_Handler. The channel 5 in enabled and connected to IRQ. 2, RTI driver is enabled and compare3 source is selected to counter1 and the compare3 will generate tick in the period of 10ms. This value is coresponding with RT_TICK_PER_SECOND in rtconfig.h. In CCS, you need to create a new CCS project and create link folders pointing at bsp/rm48x50, libcpu/arm/rm48x50 and src/, include/. Remember to add the include path to the Build Properties. --- include/rtdef.h | 8 ++++++++ include/rtthread.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index a0497517b1..9fb2b7bb07 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -145,6 +145,14 @@ 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__) + #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 #include #include #include -- cgit v1.3.1 From 9237433030447b807b9f6b269f899ddcfc04017e Mon Sep 17 00:00:00 2001 From: Grissiom Date: Wed, 29 May 2013 20:41:45 +0800 Subject: add TI CCS support micros in rtdef.h --- include/rtdef.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rtdef.h b/include/rtdef.h index 9fb2b7bb07..b2267292cc 100644 --- a/include/rtdef.h +++ b/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 -- cgit v1.3.1