embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

enable

Function enable 

Source
pub unsafe fn enable<G: Gate>(
    cfg: &G::MrccPeriphConfig,
) -> Result<PreEnableParts, 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.

If an Err is returned, the given clock is guaranteed to be disabled.

ยงSAFETY

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