Added qSetLink().

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12101 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
Giovanni Di Sirio 2018-06-15 09:14:30 +00:00
parent 7d47d8cf46
commit 2fa8776c76
2 changed files with 12 additions and 0 deletions

View File

@ -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.
*

View File

@ -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().