stm32: fix opamp bug in docs build

This commit is contained in:
xoviat 2023-10-21 07:32:04 -05:00
parent 62e1e1637c
commit 7c5f963d1f

View File

@ -101,6 +101,8 @@ pub trait InvertingPin<T: Instance>: sealed::InvertingPin<T> {}
#[cfg(opamp_f3)] #[cfg(opamp_f3)]
macro_rules! impl_opamp_output { macro_rules! impl_opamp_output {
($inst:ident, $adc:ident, $ch:expr) => { ($inst:ident, $adc:ident, $ch:expr) => {
foreach_adc!(
($adc, $common_inst:ident, $adc_clock:ident) => {
impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::sealed::AdcPin<crate::peripherals::$adc> impl<'d, 'p, P: NonInvertingPin<crate::peripherals::$inst>> crate::adc::sealed::AdcPin<crate::peripherals::$adc>
for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P> for OpAmpOutput<'d, 'p, crate::peripherals::$inst, P>
{ {
@ -114,6 +116,8 @@ macro_rules! impl_opamp_output {
{ {
} }
}; };
);
};
} }
#[cfg(opamp_f3)] #[cfg(opamp_f3)]