aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-06-15 09:14:30 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-06-15 09:14:30 +0000
commit2fa8776c7699d260e28d19233254f03f491569df (patch)
treecebbd76f9bb01dfa1f5ecb449374e2cf84306799 /os/hal
parent7d47d8cf46c4728c277d0971efd7f5a3f7368cec (diff)
downloadChibiOS-2fa8776c7699d260e28d19233254f03f491569df.tar.gz
ChibiOS-2fa8776c7699d260e28d19233254f03f491569df.tar.bz2
ChibiOS-2fa8776c7699d260e28d19233254f03f491569df.zip
Added qSetLink().
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12101 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/include/hal_queues.h11
1 files changed, 11 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