stm32l0xx-hal
stm32l0xx-hal copied to clipboard
Disabling ADC Voltage Regulator before Low-power mode
the only way to disable voltage regulater before going to sleep is to manually edit register yourself, which also needs access to internal rb by calling release on ADC, which deconsturcts the adc
adc.release().cr.modify(|_, w| w.advregen().clear_bit());
would be nice to have a direct API on this