From 7fa10b4b78d70eea525f4dcbee9c1cb6e9bb3b19 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 14 Sep 2014 12:20:18 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7275 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/include/chbsem.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'os') 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. * *

Operation mode

- * 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: * - Taken, 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. * - Not taken, 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.
- * 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. * @{ */ -- cgit v1.2.3