diff options
| author | Adam Greig <[email protected]> | 2023-11-05 03:37:22 +0000 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-11-05 23:57:15 +0000 |
| commit | 28eb4cd8173063b5e61f371c9642edb5a9289a2b (patch) | |
| tree | 2803b7df64b5b3b40212cd404736fc22d65092a2 /examples/stm32f334 | |
| parent | 6ff91851b162d311e11277dae91443868db05cfd (diff) | |
stm32: support internal output on g4 opamps
Diffstat (limited to 'examples/stm32f334')
| -rw-r--r-- | examples/stm32f334/src/bin/opamp.rs | 2 |
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; |
