diff options
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_ */
|