diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-20 10:25:41 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-12-20 10:25:41 +0000 |
commit | a952f3cfafaf147df144cd37cc017ed46aac9c6b (patch) | |
tree | 334a771e422fc57844fc78bc5e1d9a518fd111e3 /os/hal/include | |
parent | ddcc89f8d136acd94bba873c2e851a5d2f50e67c (diff) | |
download | ChibiOS-a952f3cfafaf147df144cd37cc017ed46aac9c6b.tar.gz ChibiOS-a952f3cfafaf147df144cd37cc017ed46aac9c6b.tar.bz2 ChibiOS-a952f3cfafaf147df144cd37cc017ed46aac9c6b.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8620 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/hal_buffers.h | 7 |
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.
|