esp_hal

Macro dma_tx_buffer

Source
macro_rules! dma_tx_buffer {
    ($tx_size:expr) => { ... };
}
Available on crate feature unstable only.
Expand description

Convenience macro to create a DmaTxBuf from buffer size. The buffer and descriptors are statically allocated and used to create the DmaTxBuf.

ยงUsage

use esp_hal::dma_tx_buffer;

let tx_buf = dma_tx_buffer!(32000);