/* Init the DMA channel Interrupt Callback function. 
param of pfnCallback */
void xDMAChannelIntCallbackInit(unsigned long ulChannelID, xtEventCallback pfnCallback)
/* Init the DMA channel Interrupt Callback function. 
param of pfnCallback */
void xDMAChannelIntCallbackInit(unsigned long ulChannelID, xtEventCallback pfnCallback)
{
    int i;
    xASSERT(xDMAChannelIDValid(ulChannelID));
    for(i = 0; g_psDMAChannelAssignTable[i].ulChannelID != 
           xDMA_CHANNEL_NOT_EXIST;
               i++)
    {
        if(g_psDMAChannelAssignTable[i].ulChannelID == ulChannelID)
        {
            g_psDMAChannelAssignTable[i].pfnDMAChannelHandlerCallback = 
                pfnCallback;
            break;
        }
    }
}