diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-06-19 13:14:32 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2008-06-19 13:14:32 +0000 |
commit | 3d8180d95a02c876aa9de65a3364fd5de6657bc7 (patch) | |
tree | 613e8ec18785b201e06650748a2835ea23b25086 /ports | |
parent | 1a5246e99628e0c5763f01ef388c93c6c3535542 (diff) | |
download | ChibiOS-3d8180d95a02c876aa9de65a3364fd5de6657bc7.tar.gz ChibiOS-3d8180d95a02c876aa9de65a3364fd5de6657bc7.tar.bz2 ChibiOS-3d8180d95a02c876aa9de65a3364fd5de6657bc7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@319 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ARM7/chtypes.h | 3 | ||||
-rw-r--r-- | ports/ARMCM3/chtypes.h | 3 | ||||
-rw-r--r-- | ports/AVR/chtypes.h | 3 | ||||
-rw-r--r-- | ports/MSP430/chtypes.h | 3 |
4 files changed, 12 insertions, 0 deletions
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_ */
|