macro_rules! dma_circular_buffers_chunk_size {
($rx_size:expr, $tx_size:expr, $chunk_size:expr) => { ... };
($size:expr, $chunk_size:expr) => { ... };
}
Available on crate feature
unstable
only.Expand description
Convenience macro to create circular DMA buffers and descriptors with specific chunk size.
ยงUsage
use esp_hal::dma_circular_buffers_chunk_size;
// RX and TX buffers are 32000 bytes - passing only one parameter makes RX
// and TX the same size.
let (rx_buffer, rx_descriptors, tx_buffer, tx_descriptors) =
dma_circular_buffers_chunk_size!(32000, 32000, 4032);