/* Set DMA configuration registe used by a HDMA channel.  */
void DMA_SetConfiguration(unsigned char channel, unsigned int value)
/* Set DMA configuration registe used by a HDMA channel.  */
void DMA_SetConfiguration(unsigned char channel, unsigned int value)
{
    ASSERT(channel < DMA_CHANNEL_NUM, "this channel does not exist");
    AT91C_BASE_HDMA->HDMA_CH[channel].HDMA_CFG = value;
}