From 75792b3d6af243e043e66b1b2f7199229d430ef8 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 21 Apr 2010 14:11:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1882 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/templates/chtypes.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'os/kernel') 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 @@ -96,6 +96,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). */ -- cgit v1.2.3