aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/templates
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/kernel/templates
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/kernel/templates')
-rw-r--r--os/kernel/templates/chtypes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/os/kernel/templates/chtypes.h b/os/kernel/templates/chtypes.h
index e54c55100..164ccbe60 100644
--- a/os/kernel/templates/chtypes.h
+++ b/os/kernel/templates/chtypes.h
@@ -97,6 +97,19 @@ typedef int32_t cnt_t;
#define INLINE inline
/**
+ * @brief ROM constant modifier.
+ * @note This is required because some compilers require a custom keyword,
+ * usually this macro is just set to "const" for the GCC compiler.
+ * @note This macro is not used to place constants in different address
+ * spaces (like AVR requires as example) because it is assumed that
+ * a pointer to a ROMCONST constant is compatible with a pointer
+ * to a normal variable. It is just like the "const" keyword but
+ * requires that the constant is placed in ROM if the architecture
+ * supports it.
+ */
+#define ROMCONST const
+
+/**
* @brief Packed structure modifier (within).
*/
#define PACK_STRUCT_STRUCT __attribute__((packed))