stm32: move MCO pin impls to build.rs
This commit is contained in:
@ -348,15 +348,6 @@ macro_rules! impl_peri {
|
||||
impl_peri!(MCO1, Mco1, set_mco1, set_mco1pre);
|
||||
impl_peri!(MCO2, Mco2, set_mco2, set_mco2pre);
|
||||
|
||||
crate::pac::peripheral_pins!(
|
||||
($inst:ident, rcc, RCC, $pin:ident, MCO_1, $af:expr) => {
|
||||
pin_trait_impl!(crate::rcc::McoPin, MCO1, $pin, $af);
|
||||
};
|
||||
($inst:ident, rcc, RCC, $pin:ident, MCO_2, $af:expr) => {
|
||||
pin_trait_impl!(crate::rcc::McoPin, MCO2, $pin, $af);
|
||||
};
|
||||
);
|
||||
|
||||
pub struct Mco<'d, T: McoInstance> {
|
||||
phantom: PhantomData<&'d mut T>,
|
||||
}
|
||||
|
Reference in New Issue
Block a user