aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/AVR
diff options
context:
space:
mode:
authorFabio Utzig <utzig@utzig.org>2015-06-04 12:47:12 +0000
committerFabio Utzig <utzig@utzig.org>2015-06-04 12:47:12 +0000
commitd72e5d4636b325ea06012646a96104092a7c1c5b (patch)
tree07a0dde92c855ec745d5b8e59848823e8411accc /os/rt/ports/AVR
parent0e2b620290bcf45094f086e9d7a744a1c312b42b (diff)
downloadChibiOS-d72e5d4636b325ea06012646a96104092a7c1c5b.tar.gz
ChibiOS-d72e5d4636b325ea06012646a96104092a7c1c5b.tar.bz2
ChibiOS-d72e5d4636b325ea06012646a96104092a7c1c5b.zip
[AVR] Add missing chtypes for RT
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8010 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/AVR')
-rw-r--r--os/rt/ports/AVR/compilers/GCC/chtypes.h22
1 files 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
@@ -64,33 +64,27 @@ 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.
*/
#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_ */