mirror of
https://github.com/apache/nuttx.git
synced 2026-08-29 21:30:44 +00:00
include/dma: support to config dst/src drq for every dma channel
set dst_drq and src drq to dma channel configuration register of dmac Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
51475e4273
commit
06ee8d9673
1 changed files with 7 additions and 3 deletions
|
|
@ -137,12 +137,12 @@
|
|||
(chan)->ops->start_cyclic(chan, callback, arg, dst, src, len, period_len)
|
||||
|
||||
/****************************************************************************
|
||||
* Name: DMA_START_CYCLIC
|
||||
* Name: DMA_START_LINK
|
||||
*
|
||||
* Description:
|
||||
* Start the cyclic DMA transfer.
|
||||
* Start the DMA link transfer.
|
||||
*
|
||||
* Note: callback get called for each period length data DMA transfer.
|
||||
* Note: callback get called when the DMA link transfer finish.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
|
@ -233,6 +233,8 @@ typedef CODE void (*dma_callback_t)(FAR struct dma_chan_s *chan,
|
|||
* where DMA data shall be read. If the source is memory this
|
||||
* may be ignored. Legal values: 1, 2, 4, 8.
|
||||
* src_width - same as dst_width but for the source(RX) mutatis mutandis.
|
||||
* dst_drq - physical destination DMA request ID for this channel.
|
||||
* src_drq - physical source DMA request ID for this channel.
|
||||
*
|
||||
* Note: the special value zero means to keep the current value without
|
||||
* change.
|
||||
|
|
@ -246,6 +248,8 @@ struct dma_config_s
|
|||
unsigned int timeout;
|
||||
unsigned int dst_width;
|
||||
unsigned int src_width;
|
||||
unsigned int dst_drq;
|
||||
unsigned int src_drq;
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DMA_LINK
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue