aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f334
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-11-20 21:35:05 +0000
committerAdam Greig <[email protected]>2023-11-20 21:35:05 +0000
commitd1af6966051486fd605aff902b347b0346d2d889 (patch)
treecf26fc73bb31ef5731322b81b527ba5056497923 /examples/stm32f334
parent2386619f1f8b9630166b0b55c275bb74125e4b9d (diff)
STM32 opamp: use impl Peripheral instead of directly taking pins
Diffstat (limited to 'examples/stm32f334')
-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 137fc9e66..10e7b3543 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_ext(&p.PA7, &mut p.PA6, OpAmpGain::Mul1); 42 let mut buffer = opamp.buffer_ext(&mut 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;