Fix v2 ethernet pin definitions. Fix ethernet example for H7 nucleos.

This commit is contained in:
Matous Hybl
2021-11-03 17:01:48 +01:00
parent 26f86d7f36
commit 9b5d9fbfca
5 changed files with 11 additions and 6 deletions

View File

@ -429,8 +429,8 @@ macro_rules! impl_pin {
}
crate::pac::peripheral_pins!(
($inst:ident, eth, ETH, $pin:ident, REF_CLK) => {
impl_pin!($pin, RefClkPin, 11);
($inst:ident, eth, ETH, $pin:ident, REF_CLK, $af:expr) => {
impl_pin!($pin, RefClkPin, $af);
};
($inst:ident, eth, ETH, $pin:ident, MDIO, $af:expr) => {
impl_pin!($pin, MDIOPin, $af);