stm32: support internal output on g4 opamps

This commit is contained in:
Adam Greig
2023-11-05 03:37:22 +00:00
parent 6ff91851b1
commit 28eb4cd817
3 changed files with 211 additions and 36 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_for(&mut p.PA7, OpAmpGain::Mul1);
let mut buffer = opamp.buffer_ext(&p.PA7, &mut p.PA6, OpAmpGain::Mul1);
loop {
let vref = adc.read(&mut vrefint).await;