diff options
| author | Felipe Balbi <[email protected]> | 2025-12-16 11:27:20 -0800 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-12-16 11:33:30 -0800 |
| commit | 2102dba83b3254b77c12a23fd17853cbf985233f (patch) | |
| tree | ffe437de40e46a236d3fe3bfc0b4c2fbfcf9f6f9 /embassy-imxrt/src/dma.rs | |
| parent | 4e3e4f44c29d6a5ef93d646b0ae4acc861f1f72e (diff) | |
[iMXRT] dma: define MAX_CHUNK_SIZE constant
Instead of adding magic constants all over the place, let's just
define DMA MAX_CHUNK_SIZE in a single constant that be referenced by
the various users.
Diffstat (limited to 'embassy-imxrt/src/dma.rs')
| -rw-r--r-- | embassy-imxrt/src/dma.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-imxrt/src/dma.rs b/embassy-imxrt/src/dma.rs index e71a27e0e..76c9953c1 100644 --- a/embassy-imxrt/src/dma.rs +++ b/embassy-imxrt/src/dma.rs | |||
| @@ -16,6 +16,8 @@ use crate::peripherals::DMA0; | |||
| 16 | use crate::sealed::Sealed; | 16 | use crate::sealed::Sealed; |
| 17 | use crate::{BitIter, interrupt, pac, peripherals}; | 17 | use crate::{BitIter, interrupt, pac, peripherals}; |
| 18 | 18 | ||
| 19 | pub(crate) const MAX_CHUNK_SIZE: usize = 1024; | ||
| 20 | |||
| 19 | #[cfg(feature = "rt")] | 21 | #[cfg(feature = "rt")] |
| 20 | #[interrupt] | 22 | #[interrupt] |
| 21 | fn DMA0() { | 23 | fn DMA0() { |
