/* Get the DMA interrupt flag of a channel.  */
xtBoolean DMAChannelIntFlagGet(unsigned long ulChannelID, unsigned long ulIntFlags)
/* Get the DMA interrupt flag of a channel.  */
xtBoolean DMAChannelIntFlagGet(unsigned long ulChannelID, unsigned long ulIntFlags)
{
    xASSERT(xDMAChannelIDValid(ulChannelID));
    xASSERT(ulIntFlags == DMA_EVENT_TC);
    return ((xHWREG(g_psDMAChannelAddress[ulChannelID] + DMA_DSR_BCR_DONE) | ulIntFlags)
            ? xtrue : xfalse);
}