/* This temporarily disables EDMA hardware events on the specified channel, preventing them from triggering new transfers on its behalf  */
void edma_pause(unsigned channel)
/* This temporarily disables EDMA hardware events on the specified channel, preventing them from triggering new transfers on its behalf  */
void edma_pause(unsigned channel)
{
	unsigned ctlr;
	ctlr = EDMA_CTLR(channel);
	channel = EDMA_CHAN_SLOT(channel);
	if (channel < edma_info[ctlr]->num_channels) {
		unsigned int mask = (1 << (channel & 0x1f));
		edma_shadow0_write_array(ctlr, SH_EECR, channel >> 5, mask);
	}
}