diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-19 15:09:05 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-19 15:09:05 +0000 |
commit | 20481792013d3b5944f40b2a7208714e3c10b2cf (patch) | |
tree | a4454fb9ca3cd1ead890318ed8c9b6c579c0b2ac /os | |
parent | 590c27ea84385d15797224785e80d2a003df8997 (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/common/oslib/include/chheap.h | 7 |
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. */
/*===========================================================================*/
|