aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/hal_buffers.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/hal/include/hal_buffers.h b/os/hal/include/hal_buffers.h
index 0acf9ebd9..243d74196 100644
--- a/os/hal/include/hal_buffers.h
+++ b/os/hal/include/hal_buffers.h
@@ -94,9 +94,14 @@ struct io_buffers_queue {
uint8_t *buffers;
/**
* @brief Pointer for R/W sequential access.
+ * @note It is @p NULL if a new buffer must be fetched from the queue.
*/
uint8_t *ptr;
/**
+ * @brief Boundary for R/W sequential access.
+ */
+ uint8_t *top;
+ /**
* @brief Data notification callback.
*/
dbnotify_t notify;
@@ -156,7 +161,7 @@ typedef io_buffers_queue_t output_buffers_queue_t;
*
* @iclass
*/
-#define iqbIsEmptyI(ibqp) ((bool)(bqSpaceI(ibqp) == 0U))
+#define ibqIsEmptyI(ibqp) ((bool)(bqSpaceI(ibqp) == 0U))
/**
* @brief Evaluates to @p TRUE if the specified input buffered queue is full.