From 20481792013d3b5944f40b2a7208714e3c10b2cf Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 19 Mar 2016 15:09:05 +0000 Subject: Heaps tested in NIL. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9140 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/include/chheap.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'os/common/oslib/include/chheap.h') 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. */ /*===========================================================================*/ -- cgit v1.2.3