aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/ports/MSP430X/compilers/GCC/chtypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/common/ports/MSP430X/compilers/GCC/chtypes.h')
-rw-r--r--os/common/ports/MSP430X/compilers/GCC/chtypes.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/os/common/ports/MSP430X/compilers/GCC/chtypes.h b/os/common/ports/MSP430X/compilers/GCC/chtypes.h
index 11cc980..46a074c 100644
--- a/os/common/ports/MSP430X/compilers/GCC/chtypes.h
+++ b/os/common/ports/MSP430X/compilers/GCC/chtypes.h
@@ -94,6 +94,18 @@ typedef uint16_t ucnt_t; /**< Generic unsigned counter. */
*/
#define ALIGNED_VAR(n) __attribute__((aligned(n)))
-#endif /* _NILTYPES_H_ */
+/**
+ * @brief Size of a pointer.
+ * @note To be used where the sizeof operator cannot be used, preprocessor
+ * expressions for example.
+ */
+#define SIZEOF_PTR 4
+
+/**
+ * @brief True if alignment is low-high in current architecture.
+ */
+#define REVERSE_ORDER 1
+
+#endif /* CHTYPES_H */
/** @} */