Index: App/Services/CommInterrupts.c =================================================================== diff -u -r81ca79980a75ab71985d3d610bcef45fd6730458 -r7d8778a85f3e9618e4c7800cfca3bcf8ebf115c8 --- App/Services/CommInterrupts.c (.../CommInterrupts.c) (revision 81ca79980a75ab71985d3d610bcef45fd6730458) +++ App/Services/CommInterrupts.c (.../CommInterrupts.c) (revision 7d8778a85f3e9618e4c7800cfca3bcf8ebf115c8) @@ -118,46 +118,136 @@ } } +/************************************************************************* + * @brief setSCI1DMAReceiveInterrupt + * The setSCI1DMAReceiveInterrupt function enables DMA receive interrupts \n + * for the SCI1 peripheral. + * @details + * Inputs : none + * Outputs : DMA receive interrupt is enabled. + * @param none + * @return none + *************************************************************************/ void setSCI1DMAReceiveInterrupt( void ) { sciREG->SETINT = SCI_DMA_RECEIVE_INT; } +/************************************************************************* + * @brief setSCI1DMATransmitInterrupt + * The setSCI1DMATransmitInterrupt function enables DMA transmit interrupts \n + * for the SCI1 peripheral. + * @details + * Inputs : none + * Outputs : DMA transmit interrupt is enabled. + * @param none + * @return none + *************************************************************************/ void setSCI1DMATransmitInterrupt( void ) { sciREG->SETINT = SCI_DMA_TRANSMIT_INT; } +/************************************************************************* + * @brief clearSCI1DMAReceiveInterrupt + * The clearSCI1DMAReceiveInterrupt function disables DMA receive interrupts \n + * for the SCI1 peripheral. + * @details + * Inputs : none + * Outputs : DMA receive interrupt is disabled. + * @param none + * @return none + *************************************************************************/ void clearSCI1DMAReceiveInterrupt( void ) { sciREG->CLEARINT = SCI_DMA_RECEIVE_INT; } +/************************************************************************* + * @brief clearSCI1DMATransmitInterrupt + * The clearSCI1DMATransmitInterrupt function disables DMA transmit interrupts \n + * for the SCI1 peripheral. + * @details + * Inputs : none + * Outputs : DMA transmit interrupt is disabled. + * @param none + * @return none + *************************************************************************/ void clearSCI1DMATransmitInterrupt( void ) { sciREG->CLEARINT = SCI_DMA_TRANSMIT_INT; } +/************************************************************************* + * @brief setSCI2DMAReceiveInterrupt + * The setSCI2DMAReceiveInterrupt function enables DMA receive interrupts \n + * for the SCI2 peripheral. + * @details + * Inputs : none + * Outputs : DMA receive interrupt is enabled. + * @param none + * @return none + *************************************************************************/ void setSCI2DMAReceiveInterrupt( void ) { scilinREG->SETINT = SCI_DMA_RECEIVE_INT; } +/************************************************************************* + * @brief setSCI2DMATransmitInterrupt + * The setSCI2DMATransmitInterrupt function enables DMA transmit interrupts \n + * for the SCI2 peripheral. + * @details + * Inputs : none + * Outputs : DMA transmit interrupt is enabled. + * @param none + * @return none + *************************************************************************/ void setSCI2DMATransmitInterrupt( void ) { scilinREG->SETINT = SCI_DMA_TRANSMIT_INT; } +/************************************************************************* + * @brief clearSCI2DMAReceiveInterrupt + * The clearSCI2DMAReceiveInterrupt function disables DMA receive interrupts \n + * for the SCI2 peripheral. + * @details + * Inputs : none + * Outputs : DMA receive interrupt is disabled. + * @param none + * @return none + *************************************************************************/ void clearSCI2DMAReceiveInterrupt( void ) { scilinREG->CLEARINT = SCI_DMA_RECEIVE_INT; } +/************************************************************************* + * @brief clearSCI2DMATransmitInterrupt + * The clearSCI2DMATransmitInterrupt function disables DMA transmit interrupts \n + * for the SCI2 peripheral. + * @details + * Inputs : none + * Outputs : DMA transmit interrupt is disabled. + * @param none + * @return none + *************************************************************************/ void clearSCI2DMATransmitInterrupt( void ) { scilinREG->CLEARINT = SCI_DMA_TRANSMIT_INT; } +/************************************************************************* + * @brief isSCI1DMATransmitInProgress + * The isSCI2DMATransmitInProgress function determines whether a DMA transmit \n + * is in progress on the SCI1 peripheral. + * @details + * Inputs : status registers + * Outputs : none + * @param none + * @return TRUE if a transmit is in progress, FALSE if not + *************************************************************************/ BOOL isSCI1DMATransmitInProgress( void ) { BOOL transmitterBusy = ( ( sciREG->FLR & (uint32)SCI_TX_INT ) == 0U ? TRUE : FALSE ); @@ -166,6 +256,16 @@ return ( ( transmitterBusy == TRUE ) || ( dmaTransmitterBusy == TRUE ) ? TRUE : FALSE ); } +/************************************************************************* + * @brief isSCI2DMATransmitInProgress + * The isSCI2DMATransmitInProgress function determines whether a DMA transmit \n + * is in progress on the SCI2 peripheral. + * @details + * Inputs : status registers + * Outputs : none + * @param none + * @return TRUE if a transmit is in progress, FALSE if not + *************************************************************************/ BOOL isSCI2DMATransmitInProgress( void ) { BOOL transmitterBusy = ( ( scilinREG->FLR & (uint32)SCI_TX_INT ) == 0U ? TRUE : FALSE );