RTEMS 6.1-rc6
Loading...
Searching...
No Matches
Functions

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.
 
void lpc176x_dma_channel_release (unsigned channel)
 Releases the DMA channel channel.
 
void lpc176x_dma_channel_disable (unsigned channel, bool force)
 Disables the DMA channel channel.
 
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)
 

Detailed Description

Direct memory access (DMA) support.

Function Documentation

◆ lpc176x_dma_channel_disable()

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.

◆ lpc176x_dma_channel_obtain()

rtems_status_code lpc176x_dma_channel_obtain ( unsigned  channel)

Tries to obtain the DMA channel channel.

Return values
RTEMS_SUCCESSFULSuccessful operation.
RTEMS_INVALID_IDInvalid channel number.
RTEMS_RESOURCE_IN_USEChannel already occupied.

◆ lpc176x_dma_channel_release()

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.