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/branches/stable_2.2.x@2987 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
c26a7e5035
commit
5224318d0e
|
@ -155,7 +155,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.
|
||||||
|
@ -249,7 +250,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.
|
||||||
|
|
Loading…
Reference in New Issue