aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/hal/include/hal_queues.h11
-rw-r--r--readme.txt1
2 files changed, 12 insertions, 0 deletions
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
@@ -153,6 +153,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.
*
* @param[in] iqp pointer to an @p input_queue_t structure
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().