mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 16:23:10 +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> {}
|
pub trait AdcPin<T: Instance>: AdcChannel<T> + SealedAdcPin<T> {}
|
||||||
/// ADC internal channel.
|
/// ADC internal channel.
|
||||||
#[allow(private_bounds)]
|
#[allow(private_bounds)]
|
||||||
pub trait InternalChannel<T>: SealedInternalChannel<T> {}
|
pub trait InternalChannel<T>: AdcChannel<T> + SealedInternalChannel<T> {}
|
||||||
/// ADC channel.
|
/// ADC channel.
|
||||||
#[allow(private_bounds)]
|
#[allow(private_bounds)]
|
||||||
pub trait AdcChannel<T>: SealedAdcChannel<T> + Sized {
|
pub trait AdcChannel<T>: SealedAdcChannel<T> + Sized {
|
||||||
|
Loading…
Reference in New Issue
Block a user