From 2fa8776c7699d260e28d19233254f03f491569df Mon Sep 17 00:00:00 2001
From: Giovanni Di Sirio <gdisirio@gmail.com>
Date: Fri, 15 Jun 2018 09:14:30 +0000
Subject: Added qSetLink().

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12101 110e8d01-0319-4d1e-a829-52ad28d1bb01
---
 os/hal/include/hal_queues.h | 11 +++++++++++
 readme.txt                  |  1 +
 2 files changed, 12 insertions(+)

diff --git a/os/hal/include/hal_queues.h b/os/hal/include/hal_queues.h
index 1ebefe1a3..d85cb9398 100644
--- a/os/hal/include/hal_queues.h
+++ b/os/hal/include/hal_queues.h
@@ -152,6 +152,17 @@ typedef io_queue_t output_queue_t;
  */
 #define qGetLink(qp) ((qp)->q_link)
 
+/**
+ * @brief   Sets the queue application-defined link.
+ * @note    This function can be called in any context.
+ *
+ * @param[in] qp        pointer to a @p io_queue_t structure
+ * @param[in] lk        The application-defined link.
+ *
+ * @special
+ */
+#define qSetLink(qp, lk) ((qp)->q_link = lk)
+
 /**
  * @brief   Returns the filled space into an input queue.
  *
diff --git a/readme.txt b/readme.txt
index e6f9a4f85..6c1acee07 100644
--- a/readme.txt
+++ b/readme.txt
@@ -91,6 +91,7 @@
 *****************************************************************************
 
 *** Next ***
+- NEW: Added new functions to I/O queues: qSetLink().
 - NEW: Added new functions to objects fifos: chFifoReturnObjectS(),
        chFifoSendObjectAheadI(), chFifoSendObjectAheadS() and
        chFifoSendObjectAhead().
-- 
cgit v1.2.3