aboutsummaryrefslogtreecommitdiffstats
path: root/os/common/oslib/include
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-19 15:09:05 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-19 15:09:05 +0000
commit20481792013d3b5944f40b2a7208714e3c10b2cf (patch)
treea4454fb9ca3cd1ead890318ed8c9b6c579c0b2ac /os/common/oslib/include
parent590c27ea84385d15797224785e80d2a003df8997 (diff)
downloadChibiOS-20481792013d3b5944f40b2a7208714e3c10b2cf.tar.gz
ChibiOS-20481792013d3b5944f40b2a7208714e3c10b2cf.tar.bz2
ChibiOS-20481792013d3b5944f40b2a7208714e3c10b2cf.zip
Heaps tested in NIL.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9140 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/oslib/include')
-rw-r--r--os/common/oslib/include/chheap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/common/oslib/include/chheap.h b/os/common/oslib/include/chheap.h
index cd677177a..9a90d0488 100644
--- a/os/common/oslib/include/chheap.h
+++ b/os/common/oslib/include/chheap.h
@@ -102,6 +102,13 @@ struct memory_heap {
/* Module macros. */
/*===========================================================================*/
+/**
+ * @brief Allocation of an aligned static heap buffer.
+ */
+#define CH_HEAP_AREA(name, size) \
+ ALIGNED_VAR(CH_HEAP_ALIGNMENT) \
+ uint8_t name[MEM_ALIGN_NEXT((size), CH_HEAP_ALIGNMENT)]
+
/*===========================================================================*/
/* External declarations. */
/*===========================================================================*/