stm32l0xx-hal icon indicating copy to clipboard operation
stm32l0xx-hal copied to clipboard

Disabling ADC Voltage Regulator before Low-power mode

Open sreyhani opened this issue 1 year ago • 0 comments

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

sreyhani avatar Oct 30 '23 11:10 sreyhani