aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_queues.h
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-16 10:43:57 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-16 10:43:57 +0000
commit8ecb193368678a4a75cb65674fdb69e97888adfd (patch)
tree4ece0d3472e2f86dd505880a1a6bd51780d08798 /os/hal/include/hal_queues.h
parentceeef3c918319996786b297b40a43e99e446e2c9 (diff)
downloadChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.tar.gz
ChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.tar.bz2
ChibiOS-8ecb193368678a4a75cb65674fdb69e97888adfd.zip
Queues improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9124 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/include/hal_queues.h')
-rw-r--r--os/hal/include/hal_queues.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/include/hal_queues.h b/os/hal/include/hal_queues.h
index 144a4a123..e6b3b39c4 100644
--- a/os/hal/include/hal_queues.h
+++ b/os/hal/include/hal_queues.h
@@ -37,8 +37,8 @@
#define Q_OK MSG_OK /**< @brief Operation successful. */
#define Q_TIMEOUT MSG_TIMEOUT /**< @brief Timeout condition. */
#define Q_RESET MSG_RESET /**< @brief Queue has been reset. */
-#define Q_EMPTY (msg_t)-3 /**< @brief Queue empty. */
-#define Q_FULL (msg_t)-4 /**< @brief Queue full, */
+#define Q_EMPTY MSG_TIMEOUT /**< @brief Queue empty. */
+#define Q_FULL MSG_TIMEOUT /**< @brief Queue full, */
/** @} */
/**
@@ -187,7 +187,7 @@ typedef io_queue_t input_queue_t;
*
* @param[in] iqp pointer to an @p input_queue_t structure
* @return A byte value from the queue.
- * @retval Q_RESET if the queue has been reset.
+ * @retval MSG_RESET if the queue has been reset.
*
* @api
*/
@@ -268,8 +268,8 @@ typedef io_queue_t output_queue_t;
* @param[in] oqp pointer to an @p output_queue_t structure
* @param[in] b the byte value to be written in the queue
* @return The operation status.
- * @retval Q_OK if the operation succeeded.
- * @retval Q_RESET if the queue has been reset.
+ * @retval MSG_OK if the operation succeeded.
+ * @retval MSG_RESET if the queue has been reset.
*
* @api
*/