From 88bea4b8c200fad936c063718289250ce49cda61 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 25 Jun 2010 08:55:40 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2038 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chbsem.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'os/kernel') diff --git a/os/kernel/include/chbsem.h b/os/kernel/include/chbsem.h index b8cd08306..adbf1605f 100644 --- a/os/kernel/include/chbsem.h +++ b/os/kernel/include/chbsem.h @@ -67,10 +67,10 @@ typedef struct { * that is part of a bigger structure. * * @param[in] name the name of the semaphore variable - * @param[in] n the counter initial value, this value must be - * non-negative + * @param[in] taken the semaphore initial state */ -#define _BSEMAPHORE_DATA(name, t) {_SEMAPHORE_DATA(name.bs_sem), ((t) ? 0 : 1)} +#define _BSEMAPHORE_DATA(name, taken) \ + {_SEMAPHORE_DATA(name.bs_sem), ((taken) ? 0 : 1)} /** * @brief Static semaphore initializer. @@ -78,11 +78,10 @@ typedef struct { * initialization using @p chSemInit(). * * @param[in] name the name of the semaphore variable - * @param[in] n the counter initial value, this value must be - * non-negative + * @param[in] taken the semaphore initial state */ -#define BSEMAPHORE_DECL(name, t) Semaphore name = _BSEMAPHORE_DATA(name, t) - +#define BSEMAPHORE_DECL(name, taken) \ + BinarySemaphore name = _BSEMAPHORE_DATA(name, taken) /** * @brief Initializes a binary semaphore. -- cgit v1.2.3