aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_buffers.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/include/hal_buffers.h')
-rw-r--r--os/hal/include/hal_buffers.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/os/hal/include/hal_buffers.h b/os/hal/include/hal_buffers.h
index 2a9c6623a..164ab82bc 100644
--- a/os/hal/include/hal_buffers.h
+++ b/os/hal/include/hal_buffers.h
@@ -175,6 +175,16 @@ typedef io_buffers_queue_t output_buffers_queue_t;
#define bqGetLinkX(bqp) ((bqp)->link)
/**
+ * @brief Sets the queue application-defined link.
+ *
+ * @param[in] bqp pointer to an @p io_buffers_queue_t structure
+ * @param[in] lk The application-defined link.
+ *
+ * @special
+ */
+#define bqSetLinkX(bqp, lk) ((bqp)->link = lk)
+
+/**
* @brief Return the suspended state of the queue.
*
* @param[in] bqp pointer to an @p io_buffers_queue_t structure