diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-24 14:54:26 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-07-24 14:54:26 +0000 |
commit | 40f413d3c97a7694703938cd031ce15912b29ff7 (patch) | |
tree | 67e9f3bdbefa23aba17e4b78ee92b91daa92197c /os/kernel/src/chqueues.c | |
parent | fa64f08fc1ad45d0984828695697f6abde7e8ffd (diff) | |
download | ChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.tar.gz ChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.tar.bz2 ChibiOS-40f413d3c97a7694703938cd031ce15912b29ff7.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6025 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chqueues.c')
-rw-r--r-- | os/kernel/src/chqueues.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/kernel/src/chqueues.c b/os/kernel/src/chqueues.c index fcaa2895f..f7e587228 100644 --- a/os/kernel/src/chqueues.c +++ b/os/kernel/src/chqueues.c @@ -66,7 +66,7 @@ static msg_t qwait(GenericQueue *qp, systime_t time) { return Q_TIMEOUT;
currp->p_u.wtobjp = qp;
queue_insert(currp, &qp->q_waiting);
- return chSchGoSleepTimeoutS(THD_STATE_WTQUEUE, time);
+ return chSchGoSleepTimeoutS(CH_STATE_WTQUEUE, time);
}
/**
@@ -154,7 +154,7 @@ msg_t chIQPutI(InputQueue *iqp, uint8_t b) { * is empty then the calling thread is suspended until a byte arrives
* in the queue or a timeout occurs.
* @note The callback is invoked before reading the character from the
- * buffer or before entering the state @p THD_STATE_WTQUEUE.
+ * buffer or before entering the state @p CH_STATE_WTQUEUE.
*
* @param[in] iqp pointer to an @p InputQueue structure
* @param[in] time the number of ticks before the operation timeouts,
@@ -201,7 +201,7 @@ msg_t chIQGetTimeout(InputQueue *iqp, systime_t time) { * @note The function is not atomic, if you need atomicity it is suggested
* to use a semaphore or a mutex for mutual exclusion.
* @note The callback is invoked before reading each character from the
- * buffer or before entering the state @p THD_STATE_WTQUEUE.
+ * buffer or before entering the state @p CH_STATE_WTQUEUE.
*
* @param[in] iqp pointer to an @p InputQueue structure
* @param[out] bp pointer to the data buffer
|