diff options
| -rw-r--r-- | embassy-stm32/src/opamp.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/embassy-stm32/src/opamp.rs b/embassy-stm32/src/opamp.rs index 789176b3d..c86c18e22 100644 --- a/embassy-stm32/src/opamp.rs +++ b/embassy-stm32/src/opamp.rs | |||
| @@ -81,11 +81,11 @@ impl<'d, T: Instance> OpAmp<'d, T> { | |||
| 81 | /// directly used as an ADC input. The opamp will be disabled when the | 81 | /// directly used as an ADC input. The opamp will be disabled when the |
| 82 | /// [`OpAmpOutput`] is dropped. | 82 | /// [`OpAmpOutput`] is dropped. |
| 83 | pub fn buffer_ext( | 83 | pub fn buffer_ext( |
| 84 | &'d mut self, | 84 | &mut self, |
| 85 | in_pin: impl Peripheral<P = impl NonInvertingPin<T> + crate::gpio::Pin>, | 85 | in_pin: impl Peripheral<P = impl NonInvertingPin<T> + crate::gpio::Pin>, |
| 86 | out_pin: impl Peripheral<P = impl OutputPin<T> + crate::gpio::Pin> + 'd, | 86 | out_pin: impl Peripheral<P = impl OutputPin<T> + crate::gpio::Pin>, |
| 87 | gain: OpAmpGain, | 87 | gain: OpAmpGain, |
| 88 | ) -> OpAmpOutput<'d, T> { | 88 | ) -> OpAmpOutput<'_, T> { |
| 89 | into_ref!(in_pin); | 89 | into_ref!(in_pin); |
| 90 | into_ref!(out_pin); | 90 | into_ref!(out_pin); |
| 91 | in_pin.set_as_analog(); | 91 | in_pin.set_as_analog(); |
| @@ -120,9 +120,9 @@ impl<'d, T: Instance> OpAmp<'d, T> { | |||
| 120 | /// [`OpAmpOutput`] is dropped. | 120 | /// [`OpAmpOutput`] is dropped. |
| 121 | #[cfg(opamp_g4)] | 121 | #[cfg(opamp_g4)] |
| 122 | pub fn buffer_dac( | 122 | pub fn buffer_dac( |
| 123 | &'d mut self, | 123 | &mut self, |
| 124 | out_pin: impl Peripheral<P = impl OutputPin<T> + crate::gpio::Pin> + 'd, | 124 | out_pin: impl Peripheral<P = impl OutputPin<T> + crate::gpio::Pin>, |
| 125 | ) -> OpAmpOutput<'d, T> { | 125 | ) -> OpAmpOutput<'_, T> { |
| 126 | into_ref!(out_pin); | 126 | into_ref!(out_pin); |
| 127 | out_pin.set_as_analog(); | 127 | out_pin.set_as_analog(); |
| 128 | 128 | ||
| @@ -148,10 +148,10 @@ impl<'d, T: Instance> OpAmp<'d, T> { | |||
| 148 | /// The opamp output will be disabled when it is dropped. | 148 | /// The opamp output will be disabled when it is dropped. |
| 149 | #[cfg(opamp_g4)] | 149 | #[cfg(opamp_g4)] |
| 150 | pub fn buffer_int( | 150 | pub fn buffer_int( |
| 151 | &'d mut self, | 151 | &mut self, |
| 152 | pin: impl Peripheral<P = impl NonInvertingPin<T> + crate::gpio::Pin>, | 152 | pin: impl Peripheral<P = impl NonInvertingPin<T> + crate::gpio::Pin>, |
| 153 | gain: OpAmpGain, | 153 | gain: OpAmpGain, |
| 154 | ) -> OpAmpInternalOutput<'d, T> { | 154 | ) -> OpAmpInternalOutput<'_, T> { |
| 155 | into_ref!(pin); | 155 | into_ref!(pin); |
| 156 | pin.set_as_analog(); | 156 | pin.set_as_analog(); |
| 157 | 157 | ||
