Small documentation fix in hal_buffers and a new macro added.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12394 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
gdisirio 2018-10-27 11:42:06 +00:00
parent dde82c6051
commit f42818b0a2
2 changed files with 11 additions and 1 deletions

View File

@ -174,6 +174,16 @@ typedef io_buffers_queue_t output_buffers_queue_t;
*/ */
#define bqGetLinkX(bqp) ((bqp)->link) #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. * @brief Return the suspended state of the queue.
* *

View File

@ -28,7 +28,7 @@
* - <b>Input queue</b>, unidirectional queue where the writer is the * - <b>Input queue</b>, unidirectional queue where the writer is the
* ISR side and the reader is the thread side. * ISR side and the reader is the thread side.
* - <b>Output queue</b>, unidirectional queue where the writer is the * - <b>Output queue</b>, unidirectional queue where the writer is the
* ISR side and the reader is the thread side. * thread side and the reader is the ISR side.
* - <b>Full duplex queue</b>, bidirectional queue. Full duplex queues * - <b>Full duplex queue</b>, bidirectional queue. Full duplex queues
* are implemented by pairing an input queue and an output queue * are implemented by pairing an input queue and an output queue
* together. * together.