diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-09-21 10:22:06 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-09-21 10:22:06 +0000 |
commit | 07351222e6d0b6b3dcd4f50ecb18bc09e7402d1c (patch) | |
tree | 4766a942caadb8937c09c015ec2609d8455ba8c5 /os/hal/src | |
parent | 16855e1a4e43b4b45e5b5a595628ab1d8c108093 (diff) | |
download | ChibiOS-07351222e6d0b6b3dcd4f50ecb18bc09e7402d1c.tar.gz ChibiOS-07351222e6d0b6b3dcd4f50ecb18bc09e7402d1c.tar.bz2 ChibiOS-07351222e6d0b6b3dcd4f50ecb18bc09e7402d1c.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2184 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/serial.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index 94418e46c..48518e66c 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -61,12 +61,12 @@ static size_t reads(void *ip, uint8_t *bp, size_t n) { static bool_t putwouldblock(void *ip) {
- return chOQIsFull(&((SerialDriver *)ip)->oqueue);
+ return chOQIsFullI(&((SerialDriver *)ip)->oqueue);
}
static bool_t getwouldblock(void *ip) {
- return chIQIsEmpty(&((SerialDriver *)ip)->iqueue);
+ return chIQIsEmptyI(&((SerialDriver *)ip)->iqueue);
}
static msg_t putt(void *ip, uint8_t b, systime_t timeout) {
@@ -192,7 +192,7 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) { chDbgCheck(sdp != NULL, "sdIncomingDataI");
- if (chIQIsEmpty(&sdp->iqueue))
+ if (chIQIsEmptyI(&sdp->iqueue))
chEvtBroadcastI(&sdp->ievent);
if (chIQPutI(&sdp->iqueue, b) < Q_OK)
sdAddFlagsI(sdp, SD_OVERRUN_ERROR);
|