aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-11-06 00:01:34 +0000
committerGitHub <[email protected]>2023-11-06 00:01:34 +0000
commit980c3cf42b78dfdb8950e331616a22e1a979f8d8 (patch)
tree6d2d58acb13d1d91856d4645469c48f3aba3f13e /examples
parent3de01bc22332f37e38e7661ee7a3b403da0b096a (diff)
parent28eb4cd8173063b5e61f371c9642edb5a9289a2b (diff)
Merge pull request #2142 from adamgreig/stm32g4-opamp
stm32: support internal output on g4 opamps
Diffstat (limited to 'examples')
-rw-r--r--examples/stm32f334/src/bin/opamp.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32f334/src/bin/opamp.rs b/examples/stm32f334/src/bin/opamp.rs
index 128001bf2..137fc9e66 100644
--- a/examples/stm32f334/src/bin/opamp.rs
+++ b/examples/stm32f334/src/bin/opamp.rs
@@ -39,7 +39,7 @@ async fn main(_spawner: Spawner) -> ! {
39 39
40 let mut vrefint = adc.enable_vref(&mut Delay); 40 let mut vrefint = adc.enable_vref(&mut Delay);
41 let mut temperature = adc.enable_temperature(); 41 let mut temperature = adc.enable_temperature();
42 let mut buffer = opamp.buffer_for(&mut p.PA7, OpAmpGain::Mul1); 42 let mut buffer = opamp.buffer_ext(&p.PA7, &mut p.PA6, OpAmpGain::Mul1);
43 43
44 loop { 44 loop {
45 let vref = adc.read(&mut vrefint).await; 45 let vref = adc.read(&mut vrefint).await;