diff options
| author | bernard.xiong <[email protected]> | 2010-04-06 10:00:28 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-06 10:00:28 +0000 |
| commit | 9294a611f525bdae415844ce8343ab6588ce4363 (patch) | |
| tree | 06e390b9e586863b525dce2f402aa10f3caa8fed /include | |
| parent | 512db75675e31e97c20c403832c414aacf408efb (diff) | |
add LPC11xx Cortex-M0 porting.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@583 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 5e112ec575..d3868ae8d3 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -60,12 +60,14 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */ #include <stdarg.h> #define SECTION(x) __attribute__((section(x))) #define UNUSED __attribute__((unused)) + #define ALIGN(n) __attribute__((aligned(n))) #define rt_inline static __inline #elif defined (__ICCARM__) /* for IAR Compiler */ #include <stdarg.h> #define SECTION(x) @ x #define UNUSED + #define ALIGN(n) #pragma pack(n) #define rt_inline inline #elif defined (__GNUC__) /* GNU GCC Compiler */ @@ -87,6 +89,7 @@ typedef rt_uint32_t rt_off_t; /* Type for offset. */ #define SECTION(x) __attribute__((section(x))) #define UNUSED __attribute__((unused)) + #define ALIGN(n) __attribute__((aligned(n))) #define rt_inline static __inline #endif |
