RTEMS
5.0.0
|
Direct memory access (DMA) support. More...
Functions | |
void | lpc176x_dma_initialize (void) |
Initializes the general purpose DMA. | |
rtems_status_code | lpc176x_dma_channel_obtain (unsigned channel) |
Tries to obtain the DMA channel channel. More... | |
void | lpc176x_dma_channel_release (unsigned channel) |
Releases the DMA channel channel. More... | |
void | lpc176x_dma_channel_disable (unsigned channel, bool force) |
Disables the DMA channel channel. More... | |
rtems_status_code | lpc176x_dma_copy_initialize (void) |
rtems_status_code | lpc176x_dma_copy_release (void) |
rtems_status_code | lpc176x_dma_copy (unsigned channel, const void *dest, const void *src, size_t n, size_t width) |
rtems_status_code | lpc176x_dma_copy_wait (unsigned channel) |
Direct memory access (DMA) support.
void lpc176x_dma_channel_disable | ( | unsigned | channel, |
bool | force | ||
) |
Disables the DMA channel channel.
If force is false
the channel will be halted and disabled when the channel is inactive otherwise it will be disabled immediately.
If the channel number channel is out of range nothing will happen.
rtems_status_code lpc176x_dma_channel_obtain | ( | unsigned | channel | ) |
Tries to obtain the DMA channel channel.
RTEMS_SUCCESSFUL | Successful operation. |
RTEMS_INVALID_ID | Invalid channel number. |
RTEMS_RESOURCE_IN_USE | Channel already occupied. |
void lpc176x_dma_channel_release | ( | unsigned | channel | ) |
Releases the DMA channel channel.
You must have obtained this channel with lpc176x_dma_channel_obtain() previously.
If the channel number channel is out of range nothing will happen.