RTEMS
5.0.0
|
Direct memory access (DMA) support. More...
Functions | |
void | lpc24xx_dma_initialize (void) |
Initializes the general purpose DMA. | |
rtems_status_code | lpc24xx_dma_channel_obtain (unsigned channel) |
Tries to obtain the DMA channel channel. More... | |
void | lpc24xx_dma_channel_release (unsigned channel) |
Releases the DMA channel channel. More... | |
void | lpc24xx_dma_channel_disable (unsigned channel, bool force) |
Disables the DMA channel channel. More... | |
rtems_status_code | lpc24xx_dma_copy_initialize (void) |
rtems_status_code | lpc24xx_dma_copy_release (void) |
rtems_status_code | lpc24xx_dma_copy (unsigned channel, void *dest, const void *src, size_t n, size_t width) |
rtems_status_code | lpc24xx_dma_copy_wait (unsigned channel) |
Direct memory access (DMA) support.
void lpc24xx_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 lpc24xx_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 lpc24xx_dma_channel_release | ( | unsigned | channel | ) |
Releases the DMA channel channel.
You must have obtained this channel with lpc24xx_dma_channel_obtain() previously.
If the channel number channel is out of range nothing will happen.