/* This re-enables EDMA hardware events on the specified channel.  */
void edma_resume(unsigned channel)
/* This re-enables EDMA hardware events on the specified channel.  */
void edma_resume(unsigned channel)
{
    unsigned ctlr;
    ctlr = EDMA_CTLR(channel);
    channel = EDMA_CHAN_SLOT(channel);
    if (channel < edma_cc[ctlr]->num_channels) {
        unsigned int mask = BIT(channel & 0x1f);
        edma_shadow0_write_array(ctlr, SH_EESR, channel >> 5, mask);
    }
}