diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-06-02 17:13:25 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-06-02 17:13:25 +0000 |
commit | 3f81701c837ada65d9d5a90e29157dc818e14c08 (patch) | |
tree | c9daa09ceeec2d293e54c48e269069d54d0056ab /os/kernel | |
parent | 679847088e7086976cff529fdd2f4f4cec21c572 (diff) | |
download | ChibiOS-3f81701c837ada65d9d5a90e29157dc818e14c08.tar.gz ChibiOS-3f81701c837ada65d9d5a90e29157dc818e14c08.tar.bz2 ChibiOS-3f81701c837ada65d9d5a90e29157dc818e14c08.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1989 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r-- | os/kernel/include/chqueues.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/os/kernel/include/chqueues.h b/os/kernel/include/chqueues.h index fed1248b5..3e4078461 100644 --- a/os/kernel/include/chqueues.h +++ b/os/kernel/include/chqueues.h @@ -98,10 +98,10 @@ typedef struct { typedef GenericQueue InputQueue;
/** @brief Evaluates to @p TRUE if the specified Input Queue is empty.*/
-#define chIQIsEmpty(q) (chQSpace(q) <= 0)
+#define chIQIsEmpty(q) ((bool_t)(chQSpace(q) <= 0))
/** @brief Evaluates to @p TRUE if the specified Input Queue is full.*/
-#define chIQIsFull(q) (chQSpace(q) >= chQSize(q))
+#define chIQIsFull(q) ((bool_t)(chQSpace(q) >= chQSize(q)))
/**
* @brief Input queue read.
@@ -163,12 +163,12 @@ typedef GenericQueue OutputQueue; /**
* @brief Evaluates to @p TRUE if the specified Output Queue is empty.
*/
-#define chOQIsEmpty(q) (chQSpace(q) >= chQSize(q))
+#define chOQIsEmpty(q) ((bool_t)(chQSpace(q) >= chQSize(q)))
/**
* @brief Evaluates to @p TRUE if the specified Output Queue is full.
*/
-#define chOQIsFull(q) (chQSpace(q) <= 0)
+#define chOQIsFull(q) ((bool_t)(chQSpace(q) <= 0))
/**
* @brief Output queue write.
|