Direct Memory Access (DMA) APIs. More...
|DMA data types. |
|gos_result_t||gos_dma_alloc (gos_handler_t callback, void *arg, gos_dma_channel_t *channel_ptr)|
|Allocate a DMA channel. More...|
|gos_result_t||gos_dma_free (gos_dma_channel_t channel)|
|Free a DMA channel. More...|
Direct Memory Access (DMA) APIs.
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.
- You must use gos_dma_free() to de-allocate the channel once it is no longer needed.
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]
Pointer to hold channel number of allocated DMA channel
- result of API call