diff options
Diffstat (limited to 'embassy-stm32/src/adc/mod.rs')
-rw-r--r-- | embassy-stm32/src/adc/mod.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-stm32/src/adc/mod.rs b/embassy-stm32/src/adc/mod.rs index fba016a7..0eb4eba7 100644 --- a/embassy-stm32/src/adc/mod.rs +++ b/embassy-stm32/src/adc/mod.rs @@ -28,6 +28,10 @@ pub(crate) mod sealed { pub trait AdcPin<T: Instance> { fn channel(&self) -> u8; } + + pub trait InternalChannel<T> { + fn channel(&self) -> u8; + } } #[cfg(not(any(adc_f1, adc_v2)))] @@ -37,6 +41,7 @@ pub trait Instance: sealed::Instance + crate::rcc::RccPeripheral + 'static {} #[cfg(all(not(adc_f1), not(adc_v1)))] pub trait Common: sealed::Common + 'static {} pub trait AdcPin<T: Instance>: sealed::AdcPin<T> {} +pub trait InternalChannel<T>: sealed::InternalChannel<T> {} #[cfg(not(stm32h7))] foreach_peripheral!( |