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 1. Parameters
Data direction Parameter name Description

[in, out]

resource

Pointer to the DMA resource

Returns

Status of the free procedure.

Table 2. Return Values
Return value Description

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