diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 10:33:37 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2009-10-17 10:33:37 +0000 |
commit | 26ed3732876a649fb02a83e768e4392034d65653 (patch) | |
tree | 35d18da4d34fc6cf74a93112df3b27efa4a46662 /os/kernel/include | |
parent | cbbe7cce8c93cf578d35cde1506e83a802e4eb05 (diff) | |
download | ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.gz ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.tar.bz2 ChibiOS-26ed3732876a649fb02a83e768e4392034d65653.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1229 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/include')
-rw-r--r-- | os/kernel/include/mempools.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/os/kernel/include/mempools.h b/os/kernel/include/mempools.h index d5e612426..a458b8e34 100644 --- a/os/kernel/include/mempools.h +++ b/os/kernel/include/mempools.h @@ -56,7 +56,11 @@ typedef struct { * @param name the name of the memory pool variable
* @param size size of the memory pool contained objects
*/
-#define _MEMORYPOOL_DATA(name, size) {NULL, size}
+#if CH_USE_MEMCORE || defined(__DOXYGEN__)
+#define _MEMORYPOOL_DATA(name, size) {NULL, MEM_ALIGN_SIZE(size), FALSE}
+#else
+#define _MEMORYPOOL_DATA(name, size) {NULL, MEM_ALIGN_SIZE(size)}
+#endif
/**
* @brief Static memory pool initializer.
|