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

@ -71,23 +71,3 @@ crate::pac::interrupts!(
}
};
);
#[cfg(not(rcc_f1))]
crate::pac::peripheral_pins!(
($inst:ident, i2c, I2C, $pin:ident, SDA, $af:expr) => {
pin_trait_impl!(SdaPin, $inst, $pin, $af);
};
($inst:ident, i2c, I2C, $pin:ident, SCL, $af:expr) => {
pin_trait_impl!(SclPin, $inst, $pin, $af);
};
);
#[cfg(rcc_f1)]
crate::pac::peripheral_pins!(
($inst:ident, i2c, I2C, $pin:ident, SDA) => {
pin_trait_impl!(SdaPin, $inst, $pin, 0);
};
($inst:ident, i2c, I2C, $pin:ident, SCL) => {
pin_trait_impl!(SdaPin, $inst, $pin, 0);
};
);