From 2d55ac3059fcca69cc9736db310b4521064c2b23 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 22 Aug 2011 17:18:52 +0000 Subject: Documentation improvements and code comments reformatting. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3248 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chqueues.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'os/kernel/include/chqueues.h') diff --git a/os/kernel/include/chqueues.h b/os/kernel/include/chqueues.h index a2df59dad..fa217710b 100644 --- a/os/kernel/include/chqueues.h +++ b/os/kernel/include/chqueues.h @@ -31,16 +31,16 @@ #if CH_USE_QUEUES || defined(__DOXYGEN__) -/** @brief Returned by the queue functions if the operation is successful.*/ -#define Q_OK RDY_OK -/** @brief Returned by the queue functions if a timeout occurs.*/ -#define Q_TIMEOUT RDY_TIMEOUT -/** @brief Returned by the queue functions if the queue has been reset.*/ -#define Q_RESET RDY_RESET -/** @brief Returned by the queue functions if the queue is empty.*/ -#define Q_EMPTY -3 -/** @brief Returned by the queue functions if the queue is full.*/ -#define Q_FULL -4 +/** + * @name Queue functions returned status value + * @{ + */ +#define Q_OK RDY_OK /**< @brief Operation successful. */ +#define Q_TIMEOUT RDY_TIMEOUT /**< @brief Timeout condition. */ +#define Q_RESET RDY_RESET /**< @brief Queue has been reset. */ +#define Q_EMPTY -3 /**< @brief Queue empty. */ +#define Q_FULL -4 /**< @brief Queue full, */ +/** @} */ /** * @brief Type of a generic I/O queue structure. -- cgit v1.2.3 From c9be79def630f153b0b2d28e905939c15743f989 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 23 Aug 2011 10:09:08 +0000 Subject: Kernel documentation fixes and improvements. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3251 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/chqueues.h | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) (limited to 'os/kernel/include/chqueues.h') diff --git a/os/kernel/include/chqueues.h b/os/kernel/include/chqueues.h index fa217710b..4917ac837 100644 --- a/os/kernel/include/chqueues.h +++ b/os/kernel/include/chqueues.h @@ -70,6 +70,10 @@ struct GenericQueue { qnotify_t q_notify; /**< @brief Data notification callback. */ }; +/** + * @name Macro Functions + * @{ + */ /** * @brief Returns the queue's buffer size. * @@ -90,7 +94,8 @@ struct GenericQueue { * * @iclass */ -#define chQSpaceI(qp) ((size_t)((qp)->q_counter)) +#define chQSpaceI(qp) ((qp)->q_counter) +/** @} */ /** * @extends GenericQueue @@ -105,6 +110,10 @@ struct GenericQueue { */ typedef GenericQueue InputQueue; +/** + * @name Macro Functions + * @{ + */ /** * @brief Returns the filled space into an input queue. * @@ -165,6 +174,7 @@ typedef GenericQueue InputQueue; * @api */ #define chIQGet(iqp) chIQGetTimeout(iqp, TIME_INFINITE) +/** @} */ /** * @brief Data part of a static input queue initializer. @@ -212,15 +222,19 @@ typedef GenericQueue InputQueue; */ typedef GenericQueue OutputQueue; - /** - * @brief Returns the filled space into an output queue. - * - * @param[in] oqp pointer to an @p OutputQueue structure - * @return The number of full bytes in the queue. - * @retval 0 if the queue is empty. - * - * @iclass - */ +/** + * @name Macro Functions + * @{ + */ +/** + * @brief Returns the filled space into an output queue. + * + * @param[in] oqp pointer to an @p OutputQueue structure + * @return The number of full bytes in the queue. + * @retval 0 if the queue is empty. + * + * @iclass + */ #define chOQGetFullI(oqp) (chQSizeI(oqp) - chQSpaceI(oqp)) /** @@ -274,6 +288,7 @@ typedef GenericQueue OutputQueue; * @api */ #define chOQPut(oqp, b) chOQPutTimeout(oqp, b, TIME_INFINITE) + /** @} */ /** * @brief Data part of a static output queue initializer. -- cgit v1.2.3