aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-02 17:13:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-06-02 17:13:25 +0000
commit3f81701c837ada65d9d5a90e29157dc818e14c08 (patch)
treec9daa09ceeec2d293e54c48e269069d54d0056ab
parent679847088e7086976cff529fdd2f4f4cec21c572 (diff)
downloadChibiOS-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
-rw-r--r--os/kernel/include/chqueues.h8
-rw-r--r--readme.txt4
2 files changed, 6 insertions, 6 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.
diff --git a/readme.txt b/readme.txt
index e350134e3..fea5d6ad8 100644
--- a/readme.txt
+++ b/readme.txt
@@ -63,8 +63,8 @@
- OPT: Small size optimization in the semaphores subsystem.
- OPT: Improvements in the STM8 port, the code is now smaller and generally
faster, also saved few bytes of RAM.
-- Added some explicit casts in chevents.h in order to silence two warnings on
- a specific compiler.
+- Added explicit casts in chevents.h and chqueues.h in order to silence
+ some warnings on a specific compiler.
*** 1.5.8 ***
- FIX: Fixed missing files from ST library zip file (bug 3006629).