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.
| Data direction | Parameter name | Description |
|---|---|---|
|
[in, out] |
resource |
Pointer to the DMA resource |
Returns
Status of the free procedure.
| 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 |
