-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
embassy/embassy-stm32/src/hrtim/mod.rs
Lines 35 to 53 in 49534cd
pub struct ChA<T: Instance> { | |
phantom: PhantomData<T>, | |
} | |
pub struct ChB<T: Instance> { | |
phantom: PhantomData<T>, | |
} | |
pub struct ChC<T: Instance> { | |
phantom: PhantomData<T>, | |
} | |
pub struct ChD<T: Instance> { | |
phantom: PhantomData<T>, | |
} | |
pub struct ChE<T: Instance> { | |
phantom: PhantomData<T>, | |
} | |
#[cfg(hrtim_v2)] | |
pub struct ChF<T: Instance> { | |
phantom: PhantomData<T>, | |
} |
These should be changed into a single Ch<T: Instance, C: Channel>
, where C
is a series of marker types A, B, C... This will need deduplicating the Pin traits too.
See this PR which did a similar refactor to SAI for ideas: #2310