Use RccPeripheral for adc_v2

This commit is contained in:
chemicstry
2022-10-07 13:29:56 +03:00
parent d49d1b6b1c
commit 9dca368c3d
2 changed files with 11 additions and 19 deletions

View File

@ -30,9 +30,9 @@ pub(crate) mod sealed {
}
}
#[cfg(not(adc_f1))]
#[cfg(not(any(adc_f1, adc_v2)))]
pub trait Instance: sealed::Instance + 'static {}
#[cfg(adc_f1)]
#[cfg(any(adc_f1, adc_v2))]
pub trait Instance: sealed::Instance + crate::rcc::RccPeripheral + 'static {}
#[cfg(all(not(adc_f1), not(adc_v1)))]
pub trait Common: sealed::Common + 'static {}