Merge pull request #2338 from eZioPan/note-on-circular-dma
docs: add a note about circular mode DMA
This commit is contained in:
commit
8442e72589
@ -23,6 +23,10 @@ use crate::pac::bdma::{regs, vals};
|
|||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
pub struct TransferOptions {
|
pub struct TransferOptions {
|
||||||
/// Enable circular DMA
|
/// Enable circular DMA
|
||||||
|
///
|
||||||
|
/// Note:
|
||||||
|
/// If you enable circular mode manually, you may want to build and `.await` the `Transfer` in a separate task.
|
||||||
|
/// Since DMA in circular mode need manually stop, `.await` in current task would block the task forever.
|
||||||
pub circular: bool,
|
pub circular: bool,
|
||||||
/// Enable half transfer interrupt
|
/// Enable half transfer interrupt
|
||||||
pub half_transfer_ir: bool,
|
pub half_transfer_ir: bool,
|
||||||
|
@ -30,6 +30,10 @@ pub struct TransferOptions {
|
|||||||
/// FIFO threshold for DMA FIFO mode. If none, direct mode is used.
|
/// FIFO threshold for DMA FIFO mode. If none, direct mode is used.
|
||||||
pub fifo_threshold: Option<FifoThreshold>,
|
pub fifo_threshold: Option<FifoThreshold>,
|
||||||
/// Enable circular DMA
|
/// Enable circular DMA
|
||||||
|
///
|
||||||
|
/// Note:
|
||||||
|
/// If you enable circular mode manually, you may want to build and `.await` the `Transfer` in a separate task.
|
||||||
|
/// Since DMA in circular mode need manually stop, `.await` in current task would block the task forever.
|
||||||
pub circular: bool,
|
pub circular: bool,
|
||||||
/// Enable half transfer interrupt
|
/// Enable half transfer interrupt
|
||||||
pub half_transfer_ir: bool,
|
pub half_transfer_ir: bool,
|
||||||
|
Loading…
Reference in New Issue
Block a user