mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
make AdcChannel required for InternalChannel
This commit is contained in:
parent
ddbb6c8c31
commit
41e11d86b9
@ -128,7 +128,7 @@ pub trait Instance: SealedInstance + crate::Peripheral<P = Self> + crate::rcc::R
|
||||
pub trait AdcPin<T: Instance>: AdcChannel<T> + SealedAdcPin<T> {}
|
||||
/// ADC internal channel.
|
||||
#[allow(private_bounds)]
|
||||
pub trait InternalChannel<T>: SealedInternalChannel<T> {}
|
||||
pub trait InternalChannel<T>: AdcChannel<T> + SealedInternalChannel<T> {}
|
||||
/// ADC channel.
|
||||
#[allow(private_bounds)]
|
||||
pub trait AdcChannel<T>: SealedAdcChannel<T> + Sized {
|
||||
|
Loading…
Reference in New Issue
Block a user