diff options
| -rw-r--r-- | os/hal/include/hal_buffers.h | 10 | ||||
| -rw-r--r-- | os/hal/src/hal_buffers.c | 2 | 
2 files changed, 11 insertions, 1 deletions
| diff --git a/os/hal/include/hal_buffers.h b/os/hal/include/hal_buffers.h index 2a9c6623a..164ab82bc 100644 --- a/os/hal/include/hal_buffers.h +++ b/os/hal/include/hal_buffers.h @@ -175,6 +175,16 @@ typedef io_buffers_queue_t output_buffers_queue_t;  #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.
   *
   * @param[in] bqp       pointer to an @p io_buffers_queue_t structure
 diff --git a/os/hal/src/hal_buffers.c b/os/hal/src/hal_buffers.c index f9a62c210..f7b2c9f4a 100644 --- a/os/hal/src/hal_buffers.c +++ b/os/hal/src/hal_buffers.c @@ -28,7 +28,7 @@   *          - <b>Input queue</b>, unidirectional queue where the writer is the
   *            ISR side and the reader is the thread side.
   *          - <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
   *            are implemented by pairing an input queue and an output queue
   *            together.
 | 
