Macro esp_hal::dma_circular_buffers
source · macro_rules! dma_circular_buffers { ($rx_size:expr, $tx_size:expr) => { ... }; ($size:expr) => { ... }; }
Expand description
Convenience macro to create circular DMA buffers and descriptors.
§Usage
use esp_hal::dma_circular_buffers;
// 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!(32000, 32000);