From a952f3cfafaf147df144cd37cc017ed46aac9c6b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 20 Dec 2015 10:25:41 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8620 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/include/hal_buffers.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'os/hal/include') 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,8 +94,13 @@ 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. */ @@ -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. -- cgit v1.2.3