This function is provided if the driver would like to set/change its callback function.
|channel_num ||the channel number returned at request time. This would be used by the DMA driver to identify the calling driver and do the necessary cleanup on the channel associated with the particular peripheral |
|callback ||a callback function to provide notification on transfer completion, user could specify NULL if he does not wish to be notified |
|arg ||an argument that gets passed in to the callback function, used by the user to do any driver specific operations. |
- this function returns a negative number on error if the callback could not be set for the channel or 0 on success
Definition at line 642 of file dma_sdma.c.
Referenced by mxcuart_initdma(), and spdif_configure_dma_channel().