From d29098e7f64c4d15b5414447937bfd09f142f758 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 19 Mar 2016 10:47:17 +0000 Subject: Guarded pools tested. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9137 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/include/chmempools.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'os/common/oslib/include/chmempools.h') diff --git a/os/common/oslib/include/chmempools.h b/os/common/oslib/include/chmempools.h index d617f648a..71f53a67d 100644 --- a/os/common/oslib/include/chmempools.h +++ b/os/common/oslib/include/chmempools.h @@ -120,21 +120,19 @@ typedef struct { */ #define _GUARDEDMEMORYPOOL_DATA(name, size) { \ _SEMAPHORE_DATA(name.sem, (cnt_t)0), \ - NULL, \ - size, \ - NULL \ + _MEMORYPOOL_DATA(NULL, size, NULL) \ } /** * @brief Static guarded memory pool initializer. - * @details Statically initialized guardedmemory pools require no explicit + * @details Statically initialized guarded memory pools require no explicit * initialization using @p chGuardedPoolInit(). * * @param[in] name the name of the guarded memory pool variable * @param[in] size size of the memory pool contained objects */ #define GUARDEDMEMORYPOOL_DECL(name, size) \ - memory_pool_t name = _MEMORYPOOL_DATA(name, size) + guarded_memory_pool_t name = _GUARDEDMEMORYPOOL_DATA(name, size) #endif /* CH_CFG_USE_SEMAPHORES == TRUE */ /*===========================================================================*/ -- cgit v1.2.3