/* This function attach isr for the channel to SDMA lib. The isr will be called  */
int32_t sdma_channel_isr_attach(uint32_t channel, sdma_channel_isr isr)
/* This function attach isr for the channel to SDMA lib. The isr will be called  */
int32_t sdma_channel_isr_attach(uint32_t channel, sdma_channel_isr isr)
{
    if (channel >= SDMA_NUM_CHANNELS) {
        return SDMA_RETV_FAIL;
    }
    if (NULL == isr) {
        return SDMA_RETV_NULLP;
    }
    sdma_channel_isr_list[channel] = isr;
    return SDMA_RETV_SUCCESS;
}