stm32: add g4 adc345 and misc.

This commit is contained in:
xoviat
2023-09-11 17:12:54 -05:00
parent 1133cbf90e
commit b9889ad3b5
3 changed files with 37 additions and 7 deletions

View File

@ -102,7 +102,7 @@ where
let presc = Prescaler::from_pclk2(T::frequency());
T::common_regs().ccr().modify(|w| w.set_adcpre(presc.adcpre()));
T::regs().cr2().modify(|reg| {
reg.set_adon(crate::pac::adc::vals::Adon::ENABLED);
reg.set_adon(true);
});
delay.delay_us(ADC_POWERUP_TIME_US);