Skip to main content

init

Function init 

Source
pub fn init(config: Config) -> Peripherals
Available on crate feature rt only.
Expand description

Initializes the system.

Sets up the CPU clock and watchdog, then returns the peripherals and clocks.

ยงExamples

use esp_hal::{Config, init};
let peripherals = init(Config::default());