Index: Comm.c =================================================================== diff -u -r6d80d69a210f45c733e5307859351f2cd820a8e7 -r8e3c1aa26d6668749668255dbc337910b30423ae --- Comm.c (.../Comm.c) (revision 6d80d69a210f45c733e5307859351f2cd820a8e7) +++ Comm.c (.../Comm.c) (revision 8e3c1aa26d6668749668255dbc337910b30423ae) @@ -30,6 +30,9 @@ #define DMA_CH_STATUS_BIT(ch) ((U32)1U << (ch)) ///< Macro to get bit mask for status of a given DMA channel. +#define SCI_DMA_TRANSMIT_INT 0x00010000 ///< Bit mask for setting/clearing serial DMA transmit interrupts. +#define SCI_DMA_RECEIVE_INT 0x00060000 ///< Bit mask for setting/clearing serial DMA receive interrupts. + // ********** private data ********** static volatile BOOL canXmitsInProgress = FALSE; ///< Flag indicates a CAN frame transmit is in progress. @@ -38,8 +41,8 @@ * @brief * The signalCANXmitsInitiated function sets the CAN transmits in * progress flag. - * @details Inputs: none - * @details Outputs: canXmitsInProgress + * @details \b Inputs: none + * @details \b Outputs: canXmitsInProgress * @return none *************************************************************************/ void signalCANXmitsInitiated( void ) @@ -51,8 +54,8 @@ * @brief * The signalCANXmitsCompleted function resets the CAN transmits in * progress flag. - * @details Inputs: none - * @details Outputs: canXmitsInProgress + * @details \b Inputs: none + * @details \b Outputs: canXmitsInProgress * @return none *************************************************************************/ void signalCANXmitsCompleted( void ) @@ -64,8 +67,8 @@ * @brief * The setSCI2DMAReceiveInterrupt function enables DMA receive interrupts * for the SCI2 peripheral. - * @details Inputs: none - * @details Outputs: DMA receive interrupt is enabled. + * @details \b Inputs: none + * @details \b Outputs: DMA receive interrupt is enabled. * @return none *************************************************************************/ void setSCI2DMAReceiveInterrupt( void ) @@ -77,8 +80,8 @@ * @brief * The setSCI2DMATransmitInterrupt function enables DMA transmit interrupts * for the SCI2 peripheral. - * @details Inputs: none - * @details Outputs: DMA transmit interrupt is enabled. + * @details \b Inputs: none + * @details \b Outputs: DMA transmit interrupt is enabled. * @return none *************************************************************************/ void setSCI2DMATransmitInterrupt( void ) @@ -90,8 +93,8 @@ * @brief * The clearSCI2DMAReceiveInterrupt function disables DMA receive interrupts * for the SCI2 peripheral. - * @details Inputs: none - * @details Outputs: DMA receive interrupt is disabled. + * @details \b Inputs: none + * @details \b Outputs: DMA receive interrupt is disabled. * @return none *************************************************************************/ void clearSCI2DMAReceiveInterrupt( void ) @@ -103,8 +106,8 @@ * @brief * The clearSCI2DMATransmitInterrupt function disables DMA transmit interrupts * for the SCI2 peripheral. - * @details Inputs: none - * @details Outputs: DMA transmit interrupt is disabled. + * @details \b Inputs: none + * @details \b Outputs: DMA transmit interrupt is disabled. * @return none *************************************************************************/ void clearSCI2DMATransmitInterrupt( void ) @@ -116,8 +119,8 @@ * @brief * The clearSCI1CommErrors function clears framing and/or overrun error flags \ * for the SCI1 peripheral. - * @details Inputs: none - * @details Outputs: SCI1 error flags cleared. + * @details \b Inputs: none + * @details \bOutputs: SCI1 error flags cleared. * @return none *************************************************************************/ void clearSCI1CommErrors( void ) @@ -130,8 +133,8 @@ * @brief * The isSCI2DMATransmitInProgress function determines whether a DMA transmit * is in progress on the SCI2 peripheral. - * @details Inputs: status registers - * @details Outputs: none + * @details \b Inputs: status registers + * @details \b Outputs: none * @return TRUE if a transmit is in progress, FALSE if not *************************************************************************/ BOOL isSCI2DMATransmitInProgress( void ) @@ -146,8 +149,8 @@ * @brief * The isCAN1TransmitInProgress function determines whether a transmit * is in progress on the CAN1 peripheral. - * @details Inputs: status registers - * @details Outputs: none + * @details \b Inputs: status registers + * @details \b Outputs: none * @return TRUE if a transmit is in progress, FALSE if not *************************************************************************/ BOOL isCAN1TransmitInProgress( void )