change the ALIGN definition for IAR compiler.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@782 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2010-06-29 09:09:13 +00:00
parent 4902e69f1e
commit a3e2556360
3 changed files with 10 additions and 9 deletions

View File

@ -66,7 +66,7 @@ typedef unsigned char u_char;
typedef unsigned short u_short; typedef unsigned short u_short;
typedef unsigned long u_long; typedef unsigned long u_long;
#if !defined(__CC_ARM) && !defined(__ICCARM__) && !defined(__ICCM16C__) #if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
typedef unsigned int size_t; typedef unsigned int size_t;
#ifndef NULL #ifndef NULL

View File

@ -26,6 +26,7 @@
/* finsh thread */ /* finsh thread */
static struct rt_thread finsh_thread; static struct rt_thread finsh_thread;
ALIGN(RT_ALIGN_SIZE)
static char finsh_thread_stack[FINSH_THREAD_STACK_SIZE]; static char finsh_thread_stack[FINSH_THREAD_STACK_SIZE];
struct finsh_shell* shell; struct finsh_shell* shell;
@ -50,7 +51,7 @@ char *strdup(const char *s)
} }
#endif #endif
#if !defined(__CC_ARM) && !defined(__ICCARM__) && !defined(__ICCM16C__) #if !defined(__CC_ARM) && !defined(__IAR_SYSTEMS_ICC__)
int isalpha( int ch ) int isalpha( int ch )
{ {
return (unsigned int)((ch | 0x20) - 'a') < 26u; return (unsigned int)((ch | 0x20) - 'a') < 26u;

View File

@ -71,7 +71,7 @@ typedef rt_uint32_t mem_ptr_t;
#define PACK_STRUCT_STRUCT __attribute__ ((__packed__)) #define PACK_STRUCT_STRUCT __attribute__ ((__packed__))
#define PACK_STRUCT_BEGIN #define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END #define PACK_STRUCT_END
#elif defined(__ICCARM__) /* IAR Compiler */ #elif defined(__IAR_SYSTEMS_ICC__) /* IAR Compiler */
#define PACK_STRUCT_BEGIN #define PACK_STRUCT_BEGIN
#define PACK_STRUCT_STRUCT #define PACK_STRUCT_STRUCT
#define PACK_STRUCT_END #define PACK_STRUCT_END