Improved serial driver errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10038 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
d7a0be7d7f
commit
ad23374705
|
@ -40,6 +40,7 @@
|
|||
#define SD_OVERRUN_ERROR (eventflags_t)128 /**< @brief Overflow. */
|
||||
#define SD_NOISE_ERROR (eventflags_t)256 /**< @brief Line noise. */
|
||||
#define SD_BREAK_DETECTED (eventflags_t)512 /**< @brief LIN Break. */
|
||||
#define SD_QUEUE_FULL_ERROR (eventflags_t)1024 /**< @brief Queue full. */
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
|
@ -218,7 +218,7 @@ void sdIncomingDataI(SerialDriver *sdp, uint8_t b) {
|
|||
if (iqIsEmptyI(&sdp->iqueue))
|
||||
chnAddFlagsI(sdp, CHN_INPUT_AVAILABLE);
|
||||
if (iqPutI(&sdp->iqueue, b) < MSG_OK)
|
||||
chnAddFlagsI(sdp, SD_OVERRUN_ERROR);
|
||||
chnAddFlagsI(sdp, SD_QUEUE_FULL_ERROR);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue