diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 10:43:57 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-16 10:43:57 +0000 |
commit | 8ecb193368678a4a75cb65674fdb69e97888adfd (patch) | |
tree | 4ece0d3472e2f86dd505880a1a6bd51780d08798 /os/hal/src/serial.c | |
parent | ceeef3c918319996786b297b40a43e99e446e2c9 (diff) | |
download | ChibiOS-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/src/serial.c')
-rw-r--r-- | os/hal/src/serial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index 4b5ecf6e7..747988631 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -159,7 +159,7 @@ void sdStart(SerialDriver *sdp, const SerialConfig *config) { /**
* @brief Stops the driver.
* @details Any thread waiting on the driver's queues will be awakened with
- * the message @p Q_RESET.
+ * the message @p MSG_RESET.
*
* @param[in] sdp pointer to a @p SerialDriver object
*
@@ -203,7 +203,7 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) { if (iqIsEmptyI(&sdp->iqueue))
chnAddFlagsI(sdp, CHN_INPUT_AVAILABLE);
- if (iqPutI(&sdp->iqueue, b) < Q_OK)
+ if (iqPutI(&sdp->iqueue, b) < MSG_OK)
chnAddFlagsI(sdp, SD_OVERRUN_ERROR);
}
@@ -217,7 +217,7 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) { *
* @param[in] sdp pointer to a @p SerialDriver structure
* @return The byte value read from the driver's output queue.
- * @retval Q_EMPTY if the queue is empty (the lower driver usually
+ * @retval MSG_TIMEOUT if the queue is empty (the lower driver usually
* disables the interrupt source when this happens).
*
* @iclass
@@ -229,7 +229,7 @@ msg_t sdRequestDataI(SerialDriver *sdp) { osalDbgCheck(sdp != NULL);
b = oqGetI(&sdp->oqueue);
- if (b < Q_OK)
+ if (b < MSG_OK)
chnAddFlagsI(sdp, CHN_OUTPUT_EMPTY);
return b;
}
|