Index: firmware/App/Drivers/Comm.c =================================================================== diff -u -r1bbf9da32e622975efed00b1a7589387a9829440 -r31f710004436c030e787c895980457e08577702d --- firmware/App/Drivers/Comm.c (.../Comm.c) (revision 1bbf9da32e622975efed00b1a7589387a9829440) +++ firmware/App/Drivers/Comm.c (.../Comm.c) (revision 31f710004436c030e787c895980457e08577702d) @@ -210,6 +210,38 @@ } /************************************************************************* + * @brief clearSCI1CommErrors + * The clearSCI1CommErrors function clears framing and/or overrun error flags \ + * for the SCI1 peripheral. + * @details + * Inputs : none + * Outputs : SCI1 error flags cleared. + * @param none + * @return none + *************************************************************************/ +void clearSCI1CommErrors( void ) +{ + sciReceiveByte( sciREG ); + sciREG->FLR |= ( SCI_FE_INT | SCI_OE_INT ); +} + +/************************************************************************* + * @brief clearSCI2CommErrors + * The clearSCI2CommErrors function clears framing and/or overrun error flags \n + * for the SCI2 peripheral. + * @details + * Inputs : none + * Outputs : SCI2 error flags cleared. + * @param none + * @return none + *************************************************************************/ +void clearSCI2CommErrors( void ) +{ + sciReceiveByte( scilinREG ); + scilinREG->FLR |= ( SCI_FE_INT | SCI_OE_INT ); +} + +/************************************************************************* * @brief isSCI1DMATransmitInProgress * The isSCI2DMATransmitInProgress function determines whether a DMA transmit \n * is in progress on the SCI1 peripheral.