|gos_result_t||gos_dma_alloc (gos_handler_t callback, void *arg, gos_dma_channel_t *channel)|
|Allocate a DMA channel. More...|
|gos_result_t||gos_dma_free (gos_dma_channel_t channel)|
|Free a DMA channel. More...|
Allocate a DMA channel.
Allocates a DMA channel from the kernel. The returned channel will be exclusively available to the user application.
- It is imperative to use this API to allocate channels which will be manually accessed by the application to prevent conflicts with the kernel's use of DMA.
function to be called when a DMA transfer on the channel returned by this function is complete. This function will execute in the IRQ context. [in]
argument to pass to callback function [out]
returns channel number of allocated DMA channel
- result of API call