diff options
| author | xoviat <[email protected]> | 2023-10-21 12:33:47 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-21 12:33:47 +0000 |
| commit | e70c531d3d28565b6926d99d8e977c4df6c13c60 (patch) | |
| tree | 5ff441b2f4b8c901e22d2c4b13a264edd6ce6f1c | |
| parent | 62e1e1637c3eacf466e3638cd5057599bf2f1ff7 (diff) | |
| parent | 7c5f963d1fd3b49064be8a75975ac5a72ba84356 (diff) | |
Merge pull request #2098 from xoviat/doc
stm32: fix opamp bug in docs build
| -rw-r--r-- | embassy-stm32/src/opamp.rs | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/embassy-stm32/src/opamp.rs b/embassy-stm32/src/opamp.rs index e0fad26eb..cb55cbe19 100644 --- a/embassy-stm32/src/opamp.rs +++ b/embassy-stm32/src/opamp.rs | |||
| @@ -101,18 +101,22 @@ pub trait InvertingPin<T: Instance>: sealed::InvertingPin<T> {} | |||
| 101 | #[cfg(opamp_f3)] | 101 | #[cfg(opamp_f3)] |
| 102 | macro_rules! impl_opamp_output { | 102 | macro_rules! impl_opamp_output { |
| 103 | ($inst:ident, $adc:ident, $ch:expr) => { | 103 | ($inst:ident, $adc:ident, $ch:expr) => { |
| 104 | impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::sealed::AdcPin<crate::peripherals::$adc> | 104 | foreach_adc!( |
| 105 | for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P> | 105 | ($adc, $common_inst:ident, $adc_clock:ident) => { |
| 106 | { | 106 | impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::sealed::AdcPin<crate::peripherals::$adc> |
| 107 | fn channel(&self) -> u8 { | 107 | for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P> |
| 108 | $ch | 108 | { |
| 109 | } | 109 | fn channel(&self) -> u8 { |
| 110 | } | 110 | $ch |
| 111 | 111 | } | |
| 112 | impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::AdcPin<crate::peripherals::$adc> | 112 | } |
| 113 | for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P> | 113 | |
| 114 | { | 114 | impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::AdcPin<crate::peripherals::$adc> |
| 115 | } | 115 | for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P> |
| 116 | { | ||
| 117 | } | ||
| 118 | }; | ||
| 119 | ); | ||
| 116 | }; | 120 | }; |
| 117 | } | 121 | } |
| 118 | 122 | ||
