pub fn init(config: Config) -> PeripheralsAvailable on crate feature 
rt only.Expand description
Initialize the system.
This function sets up the CPU clock and watchdog, then, returns the peripherals and clocks.
ยงExample
use esp_hal::{Config, init};
let peripherals = init(Config::default());