aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-07 13:32:58 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-10-07 13:32:58 +0000
commit38cc48d575a6232cfd440d97711f89f5f531422d (patch)
tree3bfa6f3d839a02c88f94429c9c0338daa2220291 /os
parentc2efc1ebe91a1496b3046d44898b3384df24fc60 (diff)
downloadChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.tar.gz
ChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.tar.bz2
ChibiOS-38cc48d575a6232cfd440d97711f89f5f531422d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2237 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/kernel/include/chmboxes.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/kernel/include/chmboxes.h b/os/kernel/include/chmboxes.h
index ed4bec8ff..964952c23 100644
--- a/os/kernel/include/chmboxes.h
+++ b/os/kernel/include/chmboxes.h
@@ -79,7 +79,7 @@ extern "C" {
((mbp)->mb_top - (mbp)->mb_buffer)
/**
- * @brief Returns the free space into the mailbox.
+ * @brief Returns the number of free message slots into a mailbox.
* @note Can be invoked in any system state but if invoked out of a locked
* state then the returned value may change after reading.
* @note The returned value can be less than zero when there are waiting
@@ -90,10 +90,10 @@ extern "C" {
*
* @iclass
*/
-#define chMBGetEmptyI(mbp) chSemGetCounterI(&(mbp)->mb_emptysem)
+#define chMBGetFreeCountI(mbp) chSemGetCounterI(&(mbp)->mb_emptysem)
/**
- * @brief Returns the number of messages into the mailbox.
+ * @brief Returns the number of queued messages into a mailbox.
* @note Can be invoked in any system state but if invoked out of a locked
* state then the returned value may change after reading.
* @note The returned value can be less than zero when there are waiting
@@ -104,14 +104,14 @@ extern "C" {
*
* @iclass
*/
-#define chMBGetFullI(mbp) chSemGetCounterI(&(mbp)->mb_fullsem)
+#define chMBGetFullCountI(mbp) chSemGetCounterI(&(mbp)->mb_fullsem)
/**
* @brief Returns the next message in the queue without removing it.
* @pre A message must be waiting in the queue for this function to work
* or it would return garbage. The correct way to use this macro is
- * to use @p chMBGetFull() and then use this macro, all within a
- * lock state.
+ * to use @p chMBGetFullCountI() and then use this macro, all within
+ * a lock state.
*
* @iclass
*/