aboutsummaryrefslogtreecommitdiff
path: root/embassy-imxrt/src/dma.rs
Commit message (Collapse)AuthorAgeFilesLines
* [iMXRT] dma: fix transfer count computationFelipe Balbi2025-12-161-3/+3
| | | | | | | | | | | | | | | count should be defined as the integer div_round_up of buffer length and word size, otherwise transferring small buffers will cause a panic due to underflow: if we let from = [0u32; 1]; then calling dma::write() will result in: let count = ((1 / 4 as usize) - 1) = 0 - 1 // underflow Rounding up results in 1 - 1 as expected.
* [iMXRT] dma: define MAX_CHUNK_SIZE constantFelipe Balbi2025-12-161-0/+2
| | | | | | 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.
* Rustfmt for edition 2024.Dario Nieuwenhuis2025-10-061-3/+3
|
* Add UART and DMA driversFelipe Balbi2025-05-151-0/+418
Both blocking and async versions are supported. Add separate examples for each mode.