dma: define and document the source and dest adjust enum.

This is used in #6306 to make the driver more readable.

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2018-03-14 20:40:21 +01:00 committed by Anas Nashif
parent 12c5bfaf14
commit d1bd3a6fe7

View file

@ -34,6 +34,13 @@ enum dma_channel_direction {
PERIPHERAL_TO_MEMORY
};
/** Valid values for @a source_addr_adj and @a dest_addr_adj */
enum dma_addr_adj {
DMA_ADDR_ADJ_INCREMENT,
DMA_ADDR_ADJ_DECREMENT,
DMA_ADDR_ADJ_NO_CHANGE,
};
/**
* @brief DMA block configuration structure.
*