pub fn control_power(
    _lock: &PowerControl,
    pd: Domain,
    run_mode: RunMode,
    state: PowerState
)
Expand description

Activate or De-Activate clocks and power to the given peripheral in the given run mode.

We take a reference to PowerControl as a permission check. We don’t need an &mut reference as we use atomic writes in the bit-banding area so it’s interrupt safe.