Index: App/Services/CommInterrupts.c =================================================================== diff -u -r7d8778a85f3e9618e4c7800cfca3bcf8ebf115c8 -r6c8c486d26306662402945537c5acaea2709d85b --- App/Services/CommInterrupts.c (.../CommInterrupts.c) (revision 7d8778a85f3e9618e4c7800cfca3bcf8ebf115c8) +++ App/Services/CommInterrupts.c (.../CommInterrupts.c) (revision 6c8c486d26306662402945537c5acaea2709d85b) @@ -274,4 +274,20 @@ return ( ( transmitterBusy == TRUE ) || ( dmaTransmitterBusy == TRUE ) ? TRUE : FALSE ); } +/************************************************************************* + * @brief isCAN1TransmitInProgress + * The isCAN1TransmitInProgress function determines whether a transmit \n + * is in progress on the CAN1 peripheral. + * @details + * Inputs : status registers + * Outputs : none + * @param none + * @return TRUE if a transmit is in progress, FALSE if not + *************************************************************************/ +BOOL isCAN1TransmitInProgress( void ) +{ + BOOL result = ( ( canREG1->TXRQx[0] != 0 ) || ( canREG1->TXRQx[1] != 0 ) ? TRUE : FALSE ); + return result; +} +