stm32: move pin trait impls from macrotables to build.rs
This commit is contained in:
@ -231,59 +231,3 @@ crate::pac::interrupts!(
|
||||
unsafe impl USBInterrupt for crate::interrupt::$irq {}
|
||||
};
|
||||
);
|
||||
|
||||
crate::pac::peripheral_pins!(
|
||||
// FS internal phy pins
|
||||
($inst:ident, otgfs, OTG_FS, $pin:ident, DP, $af:expr) => {
|
||||
pin_trait_impl!(DpPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otgfs, OTG_FS, $pin:ident, DM, $af:expr) => {
|
||||
pin_trait_impl!(DmPin, $inst, $pin, $af);
|
||||
};
|
||||
|
||||
// HS internal phy pins
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, DP, $af:expr) => {
|
||||
pin_trait_impl!(DpPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, DM, $af:expr) => {
|
||||
pin_trait_impl!(DmPin, $inst, $pin, $af);
|
||||
};
|
||||
|
||||
// HS external phy pins
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_CK, $af:expr) => {
|
||||
pin_trait_impl!(UlpiClkPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_DIR, $af:expr) => {
|
||||
pin_trait_impl!(UlpiDirPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_NXT, $af:expr) => {
|
||||
pin_trait_impl!(UlpiNxtPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_STP, $af:expr) => {
|
||||
pin_trait_impl!(UlpiStpPin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D0, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD0Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D1, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD1Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D2, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD2Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D3, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD3Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D4, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD4Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D5, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD5Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D6, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD6Pin, $inst, $pin, $af);
|
||||
};
|
||||
($inst:ident, otghs, OTG_HS, $pin:ident, ULPI_D7, $af:expr) => {
|
||||
pin_trait_impl!(UlpiD7Pin, $inst, $pin, $af);
|
||||
};
|
||||
);
|
||||
|
Reference in New Issue
Block a user