From 3d8180d95a02c876aa9de65a3364fd5de6657bc7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 19 Jun 2008 13:14:32 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@319 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- ports/ARM7/chtypes.h | 3 +++ ports/ARMCM3/chtypes.h | 3 +++ ports/AVR/chtypes.h | 3 +++ ports/MSP430/chtypes.h | 3 +++ 4 files changed, 12 insertions(+) (limited to 'ports') diff --git a/ports/ARM7/chtypes.h b/ports/ARM7/chtypes.h index 1a5d9000d..21ee1c045 100644 --- a/ports/ARM7/chtypes.h +++ b/ports/ARM7/chtypes.h @@ -40,5 +40,8 @@ typedef uint32_t systime_t; typedef int32_t cnt_t; #define INLINE inline +#define PACK_STRUCT_STRUCT __attribute__((packed)) +#define PACK_STRUCT_BEGIN +#define PACK_STRUCT_END #endif /* _CHTYPES_H_ */ diff --git a/ports/ARMCM3/chtypes.h b/ports/ARMCM3/chtypes.h index 1a5d9000d..21ee1c045 100644 --- a/ports/ARMCM3/chtypes.h +++ b/ports/ARMCM3/chtypes.h @@ -40,5 +40,8 @@ typedef uint32_t systime_t; typedef int32_t cnt_t; #define INLINE inline +#define PACK_STRUCT_STRUCT __attribute__((packed)) +#define PACK_STRUCT_BEGIN +#define PACK_STRUCT_END #endif /* _CHTYPES_H_ */ diff --git a/ports/AVR/chtypes.h b/ports/AVR/chtypes.h index dfcc90a04..6e08d93f1 100644 --- a/ports/AVR/chtypes.h +++ b/ports/AVR/chtypes.h @@ -40,5 +40,8 @@ typedef uint16_t systime_t; typedef int8_t cnt_t; #define INLINE inline +#define PACK_STRUCT_STRUCT __attribute__((packed)) +#define PACK_STRUCT_BEGIN +#define PACK_STRUCT_END #endif /* _CHTYPES_H_ */ diff --git a/ports/MSP430/chtypes.h b/ports/MSP430/chtypes.h index e1fc14ef6..319b9714e 100644 --- a/ports/MSP430/chtypes.h +++ b/ports/MSP430/chtypes.h @@ -45,6 +45,9 @@ typedef uint16_t systime_t; /* System Time, recommended fastest unsigned typedef int16_t cnt_t; /* Counter, recommended fastest signed.*/ #define INLINE inline +#define PACK_STRUCT_STRUCT __attribute__((packed)) +#define PACK_STRUCT_BEGIN +#define PACK_STRUCT_END #endif /* _CHTYPES_H_ */ -- cgit v1.2.3