Change required by a bug into the Cosmic STM8 compiler. This change is a workaround.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2986 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
gdisirio 2011-05-20 19:46:45 +00:00
parent 3003454605
commit 530fc2f440
1 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,8 @@ typedef GenericQueue InputQueue;
* *
* @iclass * @iclass
*/ */
#define chIQIsFullI(iqp) ((bool_t)(chQSpaceI(iqp) >= chQSizeI(iqp))) #define chIQIsFullI(iqp) ((bool_t)(((iqp)->q_wrptr == (iqp)->q_rdptr) && \
((iqp)->q_counter != 0)))
/** /**
* @brief Input queue read. * @brief Input queue read.
@ -243,7 +244,8 @@ typedef GenericQueue OutputQueue;
* *
* @iclass * @iclass
*/ */
#define chOQIsEmptyI(oqp) ((bool_t)(chQSpaceI(oqp) >= chQSizeI(oqp))) #define chOQIsEmptyI(oqp) ((bool_t)(((oqp)->q_wrptr == (oqp)->q_rdptr) && \
((oqp)->q_counter != 0)))
/** /**
* @brief Evaluates to @p TRUE if the specified output queue is full. * @brief Evaluates to @p TRUE if the specified output queue is full.