From a66602c99d316ecfb03e47dcf9b3fe4167edc580 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 25 Jan 2010 18:50:35 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1545 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/serial.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'os/hal/src') diff --git a/os/hal/src/serial.c b/os/hal/src/serial.c index 49355ec33..9b5219fca 100644 --- a/os/hal/src/serial.c +++ b/os/hal/src/serial.c @@ -43,7 +43,7 @@ /* * Interface implementation, the following functions just invoke the equivalent - * queue-level function or macro. + * queue-level function or macro. */ static size_t writes(void *ip, const uint8_t *bp, size_t n) { @@ -97,7 +97,7 @@ static const struct SerialDriverVMT vmt = { /*===========================================================================*/ /** - * @brief Serial Driver initialization. + * @brief Serial Driver initialization. */ void sdInit(void) { @@ -212,10 +212,11 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) { * the interrupt source when this happens). */ msg_t sdRequestDataI(SerialDriver *sdp) { + msg_t b; chDbgCheck(sdp != NULL, "sdRequestDataI"); - msg_t b = chOQGetI(&sdp->oqueue); + b = chOQGetI(&sdp->oqueue); if (b < Q_OK) chEvtBroadcastI(&sdp->oevent); return b; -- cgit v1.2.3