stm32: move pin trait impls from macrotables to build.rs

This commit is contained in:
Dario Nieuwenhuis
2022-02-23 19:43:32 +01:00
parent f14cacbf93
commit 1e69a8c484
13 changed files with 214 additions and 665 deletions

View File

@ -350,10 +350,10 @@ 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!(McoPin, MCO1, $pin, $af);
pin_trait_impl!(crate::rcc::McoPin, MCO1, $pin, $af);
};
($inst:ident, rcc, RCC, $pin:ident, MCO_2, $af:expr) => {
pin_trait_impl!(McoPin, MCO2, $pin, $af);
pin_trait_impl!(crate::rcc::McoPin, MCO2, $pin, $af);
};
);