aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-14 12:20:18 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-09-14 12:20:18 +0000
commit7fa10b4b78d70eea525f4dcbee9c1cb6e9bb3b19 (patch)
treecceb226909267bb28f0d4ad6dcd80dea12bc3f58 /os
parentf42d8a8898151743068fe60ba18269aa2eb221b6 (diff)
downloadChibiOS-7fa10b4b78d70eea525f4dcbee9c1cb6e9bb3b19.tar.gz
ChibiOS-7fa10b4b78d70eea525f4dcbee9c1cb6e9bb3b19.tar.bz2
ChibiOS-7fa10b4b78d70eea525f4dcbee9c1cb6e9bb3b19.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7275 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/rt/include/chbsem.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/os/rt/include/chbsem.h b/os/rt/include/chbsem.h
index becc1eb61..176a69c57 100644
--- a/os/rt/include/chbsem.h
+++ b/os/rt/include/chbsem.h
@@ -26,25 +26,25 @@
* @details Binary semaphores related APIs and services.
*
* <h2>Operation mode</h2>
- * Binary semaphores are implemented as a set of macros that use the
- * existing counting semaphores primitives. The difference between
- * counting and binary semaphores is that the counter of binary
- * semaphores is not allowed to grow above the value 1. Repeated
- * signal operation are ignored. A binary semaphore can thus have
- * only two defined states:
+ * Binary semaphores are implemented as a set of inline functions
+ * that use the existing counting semaphores primitives. The
+ * difference between counting and binary semaphores is that the
+ * counter of binary semaphores is not allowed to grow above the
+ * value 1. Repeated signal operation are ignored. A binary
+ * semaphore can thus have only two defined states:
* - <b>Taken</b>, when its counter has a value of zero or lower
* than zero. A negative number represent the number of threads
* queued on the binary semaphore.
* - <b>Not taken</b>, when its counter has a value of one.
* .
* Binary semaphores are different from mutexes because there is no
- * the concept of ownership, a binary semaphore can be taken by a
+ * concept of ownership, a binary semaphore can be taken by a
* thread and signaled by another thread or an interrupt handler,
* mutexes can only be taken and released by the same thread. Another
* difference is that binary semaphores, unlike mutexes, do not
* implement the priority inheritance protocol.<br>
- * In order to use the binary semaphores APIs the @p CH_CFG_USE_SEMAPHORES
- * option must be enabled in @p chconf.h.
+ * In order to use the binary semaphores APIs the
+ * @p CH_CFG_USE_SEMAPHORES option must be enabled in @p chconf.h.
* @{
*/