From 837f2cd0fd066a1a4ee1fe299aac42b7816c7e29 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 27 Apr 2018 07:34:15 +0000 Subject: Added const modifiers where required, replace NULL with nullptr, minor documentation fixes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11955 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/lib/include/chbsem.h | 2 +- os/lib/include/chmboxes.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'os/lib/include') diff --git a/os/lib/include/chbsem.h b/os/lib/include/chbsem.h index 64b597641..77ca30c25 100644 --- a/os/lib/include/chbsem.h +++ b/os/lib/include/chbsem.h @@ -297,7 +297,7 @@ static inline void chBSemSignal(binary_semaphore_t *bsp) { * * @iclass */ -static inline bool chBSemGetStateI(binary_semaphore_t *bsp) { +static inline bool chBSemGetStateI(const binary_semaphore_t *bsp) { chDbgCheckClassI(); diff --git a/os/lib/include/chmboxes.h b/os/lib/include/chmboxes.h index eeff68751..899a8ce1e 100644 --- a/os/lib/include/chmboxes.h +++ b/os/lib/include/chmboxes.h @@ -175,7 +175,7 @@ static inline size_t chMBGetFreeCountI(const mailbox_t *mbp) { * @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 chMBGetFullCountI() and then use this macro, all within + * to use @p chMBGetUsedCountI() and then use this macro, all within * a lock state. * * @param[in] mbp the pointer to an initialized @p mailbox_t object -- cgit v1.2.3