7.6.4.8 Function dma_free()

Free an allocated DMA resource.

enum status_code dma_free( struct dma_resource * resource)

This function will free an allocated DMA resource.

Table 7-14. Parameters
Data directionParameter nameDescription

[in, out]

resource

Pointer to the DMA resource

Returns

Status of the free procedure.

Table 7-15. Return Values
Return valueDescription

STATUS_OK

The DMA resource was freed successfully

STATUS_BUSY

The DMA resource was busy and can't be freed

STATUS_ERR_NOT_INITIALIZED

DMA resource was not initialized