From d72e5d4636b325ea06012646a96104092a7c1c5b Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Thu, 4 Jun 2015 12:47:12 +0000 Subject: [AVR] Add missing chtypes for RT git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8010 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/AVR/compilers/GCC/chtypes.h | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/os/rt/ports/AVR/compilers/GCC/chtypes.h b/os/rt/ports/AVR/compilers/GCC/chtypes.h index 86aba410c..548668b18 100644 --- a/os/rt/ports/AVR/compilers/GCC/chtypes.h +++ b/os/rt/ports/AVR/compilers/GCC/chtypes.h @@ -63,11 +63,6 @@ typedef uint8_t eventmask_t; /**< Event mask. */ typedef uint8_t eventflags_t; /**< Event flags. */ typedef int8_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. @@ -75,22 +70,21 @@ typedef int8_t cnt_t; /**< Resources counter. */ #define ROMCONST const /** - * @brief Packed structure modifier (within). - * @note It uses the "packed" GCC attribute. + * @brief Makes functions not inlineable. + * @note If the compiler does not support such attribute then the + * realtime counter precision could be degraded. */ -#define PACK_STRUCT_STRUCT __attribute__((packed)) +#define NOINLINE __attribute__((noinline)) /** - * @brief Packed structure modifier (before). - * @note Empty in this port. + * @brief Optimized thread function declaration macro. */ -#define PACK_STRUCT_BEGIN +#define PORT_THD_FUNCTION(tname, arg) void tname(void *arg) /** - * @brief Packed structure modifier (after). - * @note Empty in this port. + * @brief Packed variable specifier. */ -#define PACK_STRUCT_END +#define PACKED_VAR __attribute__((packed)) #endif /* _CHTYPES_H_ */ -- cgit v1.2.3