Merge pull request #2142 from adamgreig/stm32g4-opamp

stm32: support internal output on g4 opamps
This commit is contained in:
xoviat
2023-11-06 00:01:34 +00:00
committed by GitHub
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;