From f407e4a84fcf2cf3bb003ed36f80ec136f8683c2 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 8 Oct 2010 18:16:38 +0000 Subject: HAL improvements, mailboxes macro name changed. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2238 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chmboxes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'os/kernel') diff --git a/os/kernel/include/chmboxes.h b/os/kernel/include/chmboxes.h index 964952c23..608fcf91e 100644 --- a/os/kernel/include/chmboxes.h +++ b/os/kernel/include/chmboxes.h @@ -93,7 +93,7 @@ extern "C" { #define chMBGetFreeCountI(mbp) chSemGetCounterI(&(mbp)->mb_emptysem) /** - * @brief Returns the number of queued messages into a mailbox. + * @brief Returns the number of used 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 @@ -104,7 +104,7 @@ extern "C" { * * @iclass */ -#define chMBGetFullCountI(mbp) chSemGetCounterI(&(mbp)->mb_fullsem) +#define chMBGetUsedCountI(mbp) chSemGetCounterI(&(mbp)->mb_fullsem) /** * @brief Returns the next message in the queue without removing it. -- cgit v1.2.3