aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-21 14:11:12 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-04-21 14:11:12 +0000
commit75792b3d6af243e043e66b1b2f7199229d430ef8 (patch)
tree8c0740a9254d7b4b8d635c6734e3fbd30dc6d30e /os/ports
parent3621ac37b0cbab7737d215db0335017561856a10 (diff)
downloadChibiOS-75792b3d6af243e043e66b1b2f7199229d430ef8.tar.gz
ChibiOS-75792b3d6af243e043e66b1b2f7199229d430ef8.tar.bz2
ChibiOS-75792b3d6af243e043e66b1b2f7199229d430ef8.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1882 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r--os/ports/GCC/ARM7/chtypes.h29
-rw-r--r--os/ports/GCC/ARMCMx/chtypes.h24
-rw-r--r--os/ports/GCC/AVR/chtypes.h31
-rw-r--r--os/ports/GCC/MSP430/chtypes.h31
-rw-r--r--os/ports/GCC/PPC/chtypes.h27
-rw-r--r--os/ports/GCC/SIMIA32/chtypes.h26
-rw-r--r--os/ports/RC/STM8/chtypes.h37
7 files changed, 175 insertions, 30 deletions
diff --git a/os/ports/GCC/ARM7/chtypes.h b/os/ports/GCC/ARM7/chtypes.h
index 225263345..6fcfe1af0 100644
--- a/os/ports/GCC/ARM7/chtypes.h
+++ b/os/ports/GCC/ARM7/chtypes.h
@@ -18,8 +18,9 @@
*/
/**
- * @file ARM7/chtypes.h
- * @brief ARM7 architecture port system types.
+ * @file ARM7/chtypes.h
+ * @brief ARM7 architecture port system types.
+ *
* @addtogroup ARM7_CORE
* @{
*/
@@ -47,9 +48,33 @@ typedef uint32_t eventmask_t; /**< Events mask. */
typedef uint32_t systime_t; /**< System time. */
typedef int32_t cnt_t; /**< Resources counter. */
+/**
+ * @brief Inline function modifier.
+ */
#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
+
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
+
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
+
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/GCC/ARMCMx/chtypes.h b/os/ports/GCC/ARMCMx/chtypes.h
index ef35d6324..e5e68b92f 100644
--- a/os/ports/GCC/ARMCMx/chtypes.h
+++ b/os/ports/GCC/ARMCMx/chtypes.h
@@ -46,9 +46,33 @@ typedef uint32_t eventmask_t; /**< Events mask. */
typedef uint32_t systime_t; /**< System time. */
typedef int32_t cnt_t; /**< Resources counter. */
+/**
+ * @brief Inline function modifier.
+ */
#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
+
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
+
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
+
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/GCC/AVR/chtypes.h b/os/ports/GCC/AVR/chtypes.h
index 6c8c474c6..f180dfd4b 100644
--- a/os/ports/GCC/AVR/chtypes.h
+++ b/os/ports/GCC/AVR/chtypes.h
@@ -18,8 +18,9 @@
*/
/**
- * @file AVR/chtypes.h
- * @brief AVR architecture port system types.
+ * @file AVR/chtypes.h
+ * @brief AVR architecture port system types.
+ *
* @addtogroup AVR_CORE
* @{
*/
@@ -47,9 +48,33 @@ typedef uint8_t eventmask_t; /**< Events mask. */
typedef uint16_t systime_t; /**< System time. */
typedef int8_t cnt_t; /**< Resources counter. */
-#define INLINE inline
+/**
+ * @brief Inline function modifier.
+ */
+#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
+
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
+
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
+
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/GCC/MSP430/chtypes.h b/os/ports/GCC/MSP430/chtypes.h
index 8f308f2d4..3798a14dc 100644
--- a/os/ports/GCC/MSP430/chtypes.h
+++ b/os/ports/GCC/MSP430/chtypes.h
@@ -18,8 +18,9 @@
*/
/**
- * @file MSP430/chtypes.h
- * @brief MSP430 architecture port system types.
+ * @file MSP430/chtypes.h
+ * @brief MSP430 architecture port system types.
+ *
* @addtogroup MSP430_CORE
* @{
*/
@@ -47,9 +48,33 @@ typedef uint16_t eventmask_t; /**< Events mask. */
typedef uint16_t systime_t; /**< System time. */
typedef int16_t cnt_t; /**< Resources counter. */
-#define INLINE inline
+/**
+ * @brief Inline function modifier.
+ */
+#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
+
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
+
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
+
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/GCC/PPC/chtypes.h b/os/ports/GCC/PPC/chtypes.h
index e6eedbde0..f0be524b6 100644
--- a/os/ports/GCC/PPC/chtypes.h
+++ b/os/ports/GCC/PPC/chtypes.h
@@ -60,16 +60,33 @@ typedef uint32_t eventmask_t; /**< Events mask. */
typedef uint32_t systime_t; /**< System time. */
typedef int32_t cnt_t; /**< Resources counter. */
-/** Inline function modifier. */
-#define INLINE inline
+/**
+ * @brief Inline function modifier.
+ */
+#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
-/** Packed structure modifier (within). */
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
-/** Packed structure modifier (before). */
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
-/** Packed structure modifier (after). */
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/GCC/SIMIA32/chtypes.h b/os/ports/GCC/SIMIA32/chtypes.h
index 08d5b4cea..327de745a 100644
--- a/os/ports/GCC/SIMIA32/chtypes.h
+++ b/os/ports/GCC/SIMIA32/chtypes.h
@@ -40,9 +40,33 @@ typedef uint32_t eventmask_t; /**< Events mask. */
typedef uint32_t systime_t; /**< System time. */
typedef int32_t cnt_t; /**< Resources counter. */
-#define INLINE inline
+/**
+ * @brief Inline function modifier.
+ */
+#define INLINE inline
+
+/**
+ * @brief ROM constant modifier.
+ * @note It is set to use the "const" keyword in this port.
+ */
+#define ROMCONST const
+
+/**
+ * @brief Packed structure modifier (within).
+ * @note It uses the "packed" GCC attribute.
+ */
#define PACK_STRUCT_STRUCT __attribute__((packed))
+
+/**
+ * @brief Packed structure modifier (before).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_BEGIN
+
+/**
+ * @brief Packed structure modifier (after).
+ * @note Empty in this port.
+ */
#define PACK_STRUCT_END
#endif /* _CHTYPES_H_ */
diff --git a/os/ports/RC/STM8/chtypes.h b/os/ports/RC/STM8/chtypes.h
index d2245b9c0..fd3370563 100644
--- a/os/ports/RC/STM8/chtypes.h
+++ b/os/ports/RC/STM8/chtypes.h
@@ -18,14 +18,10 @@
*/
/**
- * @file templates/chtypes.h
- * @brief System types template.
- * @details The types defined in this file may change depending on the target
- * architecture. You may also try to optimize the size of the various
- * types in order to privilege size or performance, be careful in
- * doing so.
+ * @file STM8/chtypes.h
+ * @brief STM8 port system types.
*
- * @addtogroup types
+ * @addtogroup STM8_CORE
* @{
*/
@@ -40,15 +36,15 @@
//#include <stdint.h>
//#endif
-typedef unsigned char uint8_t;
-typedef signed char int8_t;
-typedef unsigned int uint16_t;
-typedef signed int int16_t;
-typedef unsigned long uint32_t;
-typedef signed long int32_t;
-typedef uint8_t uint_fast8_t;
-typedef uint16_t uint_fast16_t;
-typedef uint32_t uint_fast32_t;
+typedef unsigned char uint8_t; /**< C99-style 8 bits unsigned. */
+typedef signed char int8_t; /**< C99-style 8 bits signed. */
+typedef unsigned int uint16_t; /**< C99-style 16 bits unsigned. */
+typedef signed int int16_t; /**< C99-style 16 bits signed. */
+typedef unsigned long uint32_t; /**< C99-style 32 bits unsigned. */
+typedef signed long int32_t; /**< C99-style 32 bits signed. */
+typedef uint8_t uint_fast8_t; /**< C99-style 8 bits unsigned. */
+typedef uint16_t uint_fast16_t; /**< C99-style 16 bits unsigned. */
+typedef uint32_t uint_fast32_t; /**< C99-style 32 bits unsigned. */
/**
* @brief Boolean, recommended the fastest signed.
@@ -106,17 +102,26 @@ typedef int16_t cnt_t;
#define INLINE inline
/**
+ * @brief ROM constant modifier.
+ * @note Uses the custom "code" keyword in this port.
+ */
+#define ROMCONST code
+
+/**
* @brief Packed structure modifier (within).
+ * @note Empty in this port.
*/
#define PACK_STRUCT_STRUCT
/**
* @brief Packed structure modifier (before).
+ * @note Empty in this port.
*/
#define PACK_STRUCT_BEGIN
/**
* @brief Packed structure modifier (after).
+ * @note Empty in this port.
*/
#define PACK_STRUCT_END