RTEMS: DMA Support

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Functions
DMA Support
Board Support Packages » ARM » NXP LPC176X

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_SUCCESSFUL | Successful operation.
  RTEMS_INVALID_ID | Invalid channel number.
  RTEMS_RESOURCE_IN_USE | Channel 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.