embassy-nrf

Crates

git

Versions

nrf52832

Flavors

Skip to main content

init

Function init 

Source
pub fn init(config: Config) -> Peripherals
Expand description

Initialize the embassy-nrf HAL with the provided configuration.

This returns the peripheral singletons that can be used for creating drivers.

This disables GPIO SENSE on all pins and clears LATCH. If you are interested on which pin caused a wakeup from SYSTEM OFF, read it before calling this.

This should only be called once at startup, otherwise it panics.