embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

enable

Function enable 

Source
pub unsafe fn enable<G: Gate>(
    cfg: &G::MrccPeriphConfig,
) -> Result<u32, ClockError>
Expand description

Enable the clock gate for the given peripheral.

Prefer enable_and_reset unless you are specifically avoiding a pulse of the reset, or need to control the duration of the pulse more directly.

ยงSAFETY

This peripheral must not yet be in use prior to calling enable.