Index: Comm.c =================================================================== diff -u -rca1d590217b1bfd14f0e0682f88e04de076ff199 -r70d04832fe5897392c3c0e5d6c2e6425fc8de41b --- Comm.c (.../Comm.c) (revision ca1d590217b1bfd14f0e0682f88e04de076ff199) +++ Comm.c (.../Comm.c) (revision 70d04832fe5897392c3c0e5d6c2e6425fc8de41b) @@ -7,8 +7,8 @@ * * @file Comm.c * -* @author (last) Sean Nash -* @date (last) 26-Aug-2024 +* @author (last) Michael Garthwaite +* @date (last) 27-Jan-2026 * * @author (original) Sean Nash * @date (original) 01-Aug-2024 @@ -113,8 +113,62 @@ void clearSCI2DMATransmitInterrupt( void ) { scilinREG->CLEARINT = SCI_DMA_TRANSMIT_INT; -} +} +#ifdef __TEENSY_CONDUCTIVITY_DRIVER__ +/*********************************************************************//** + * @brief + * The setSCIDMAReceiveInterrupt function enables DMA receive interrupts + * for the SCI peripheral. + * @details \b Inputs: none + * @details \b Outputs: DMA receive interrupt is enabled. + * @return none + *************************************************************************/ +void setSCIDMAReceiveInterrupt( void ) +{ + sciREG->SETINT = SCI_DMA_RECEIVE_INT; +} + +/*********************************************************************//** + * @brief + * The setSCIDMATransmitInterrupt function enables DMA transmit interrupts + * for the SCI peripheral. + * @details \b Inputs: none + * @details \b Outputs: DMA transmit interrupt is enabled. + * @return none + *************************************************************************/ +void setSCIDMATransmitInterrupt( void ) +{ + sciREG->SETINT = SCI_DMA_TRANSMIT_INT; +} + +/*********************************************************************//** + * @brief + * The clearSCIDMAReceiveInterrupt function disables DMA receive interrupts + * for the SCI peripheral. + * @details \b Inputs: none + * @details \b Outputs: DMA receive interrupt is disabled. + * @return none + *************************************************************************/ +void clearSCIDMAReceiveInterrupt( void ) +{ + sciREG->CLEARINT = SCI_DMA_RECEIVE_INT; +} + +/*********************************************************************//** + * @brief + * The clearSCIDMATransmitInterrupt function disables DMA transmit interrupts + * for the SCI peripheral. + * @details \b Inputs: none + * @details \b Outputs: DMA transmit interrupt is disabled. + * @return none + *************************************************************************/ +void clearSCIDMATransmitInterrupt( void ) +{ + sciREG->CLEARINT = SCI_DMA_TRANSMIT_INT; +} +#endif + /*********************************************************************//** * @brief * The clearSCI1CommErrors function clears framing and/or overrun error flags \