aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-25 08:55:40 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-25 08:55:40 +0000
commit88bea4b8c200fad936c063718289250ce49cda61 (patch)
tree0c7cd93c45b07d4f9964f5c519afbf31b6c1fb34 /os/kernel
parent62f4b7f471a4b1037468d382f927c5061e5fa9ed (diff)
downloadChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.gz
ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.tar.bz2
ChibiOS-88bea4b8c200fad936c063718289250ce49cda61.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2038 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r--os/kernel/include/chbsem.h13
1 files changed, 6 insertions, 7 deletions
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.