Function stm32wlxx_hal::pwr::exit_lprun
source · pub fn exit_lprun(pwr: &mut PWR)
Expand description
Exit low-power run mode.
This will not increase the clock frequencies after exit.
Example
use stm32wlxx_hal::{
pac,
pwr::{enter_lprun_msi, exit_lprun, LprunRange},
};
let mut dp: pac::Peripherals = pac::Peripherals::take().unwrap();
cortex_m::interrupt::free(|cs| unsafe {
enter_lprun_msi(
&mut dp.FLASH,
&mut dp.PWR,
&mut dp.RCC,
LprunRange::Range1M,
cs,
)
});
exit_lprun(&mut dp.PWR);