Macro esp_ward::init_spi_default

source ·
macro_rules! init_spi_default {
    ($peripherals:ident, $pins:ident, $clocks:ident) => { ... };
}
Expand description

Initializes the default SPI configuration for the chip. Assumes the use of the standard SPI2 peripheral and default pin configuration.

§Examples

let peripherals = esp_ward::take_periph!();
let (clocks, pins) = esp_ward::init_chip!(peripherals);
let spi = esp_ward::init_spi_default!(peripherals, pins, clocks);