/* Check if the specified DMA Channel is enabled.  */
uint32_t dmac_channel_is_enable(Dmac *p_dmac, uint32_t ul_num)
/* Check if the specified DMA Channel is enabled.  */
uint32_t dmac_channel_is_enable(Dmac *p_dmac, uint32_t ul_num)
{
	Assert(p_dmac);
	Assert(ul_num<=3);
	if (p_dmac->DMAC_CHSR & (DMAC_CHSR_ENA0 << ul_num)) {
		return 1;
	} else {
		return 0;
	}
}