/* Clear the DMA interrupt flag of a channel.  */
void DMAChannelIntFlagClear(unsigned long ulChannelID, unsigned long ulIntFlags)
/* Clear the DMA interrupt flag of a channel.  */
void DMAChannelIntFlagClear(unsigned long ulChannelID, unsigned long ulIntFlags)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    xASSERT(ulIntFlags == DMA_EVENT_TC);
    xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_DSR_BCR_DONE) |= ulIntFlags;
}