aboutsummaryrefslogtreecommitdiffstats
path: root/os/lib
diff options
context:
space:
mode:
Diffstat (limited to 'os/lib')
-rw-r--r--os/lib/include/chbsem.h2
-rw-r--r--os/lib/include/chmboxes.h2
-rw-r--r--os/lib/src/chmemheaps.c4
3 files changed, 4 insertions, 4 deletions
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
diff --git a/os/lib/src/chmemheaps.c b/os/lib/src/chmemheaps.c
index ebbd46bad..fc01b7ccc 100644
--- a/os/lib/src/chmemheaps.c
+++ b/os/lib/src/chmemheaps.c
@@ -347,9 +347,9 @@ void chHeapFree(void *p) {
* @param[in] heapp pointer to a heap descriptor or @p NULL in order to
* access the default heap.
* @param[in] totalp pointer to a variable that will receive the total
- * fragmented free space or @ NULL
+ * fragmented free space or @p NULL
* @param[in] largestp pointer to a variable that will receive the largest
- * free free block found space or @ NULL
+ * free free block found space or @p NULL
* @return The number of fragments in the heap.
*
* @api