Macro esp_ward::init_chip

source ·
macro_rules! init_chip {
    ($peripherals:ident, $system:ident) => { ... };
}
Expand description

Initializes the system clocks and IO pins, providing the base setup required for any operation with peripherals.

Pins are accessible like pins.gpio2.

§Examples

let peripherals = esp_ward::take_periph!();
let system = esp_ward::take_system!(peripherals);
let (clocks, pins, delay) = esp_ward::init_chip!(peripherals, system);