/* Initialize the DMA Channel for a single buffer transfer.  */
void dmac_channel_single_buf_transfer_init(Dmac *p_dmac, uint32_t ul_num, dma_transfer_descriptor_t *p_desc)
/* Initialize the DMA Channel for a single buffer transfer.  */
void dmac_channel_single_buf_transfer_init(Dmac *p_dmac, uint32_t ul_num, dma_transfer_descriptor_t *p_desc)
{
	Assert(p_dmac);
	Assert(ul_num<=3);
	Assert(p_desc);
	p_dmac->DMAC_EBCISR;
	dmac_channel_set_source_addr(p_dmac, ul_num, p_desc->ul_source_addr);
	dmac_channel_set_destination_addr(p_dmac, ul_num,
			p_desc->ul_destination_addr);
	dmac_channel_set_descriptor_addr(p_dmac, ul_num, 0);
	dmac_channel_set_ctrlA(p_dmac, ul_num, p_desc->ul_ctrlA);
	dmac_channel_set_ctrlB(p_dmac, ul_num, p_desc->ul_ctrlB);
}