STM32 opamp: use impl Peripheral instead of directly taking pins

This commit is contained in:
Adam Greig
2023-11-20 21:35:05 +00:00
parent 2386619f1f
commit d1af696605
2 changed files with 21 additions and 27 deletions

View File

@ -39,7 +39,7 @@ async fn main(_spawner: Spawner) -> ! {
let mut vrefint = adc.enable_vref(&mut Delay);
let mut temperature = adc.enable_temperature();
let mut buffer = opamp.buffer_ext(&p.PA7, &mut p.PA6, OpAmpGain::Mul1);
let mut buffer = opamp.buffer_ext(&mut p.PA7, &mut p.PA6, OpAmpGain::Mul1);
loop {
let vref = adc.read(&mut vrefint).await;