Skip to content

Commit bef8c9f

Browse files
jeromecoutantadbridge
authored andcommitted
STM32 / IPV4: #2685 has been forgotten with #2731
1 parent 1e40487 commit bef8c9f

File tree

1 file changed

+0
-17
lines changed
  • features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM

1 file changed

+0
-17
lines changed

features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -131,23 +131,6 @@ static void _eth_arch_low_level_init(struct netif *netif)
131131

132132
/* Enable MAC and DMA transmission and reception */
133133
HAL_ETH_Start(&EthHandle);
134-
135-
/**** Configure PHY to generate an interrupt when Eth Link state changes ****/
136-
/* Read Register Configuration */
137-
HAL_ETH_ReadPHYRegister(&EthHandle, PHY_MICR, &regvalue);
138-
139-
regvalue |= (PHY_MICR_INT_EN | PHY_MICR_INT_OE);
140-
141-
/* Enable Interrupts */
142-
HAL_ETH_WritePHYRegister(&EthHandle, PHY_MICR, regvalue);
143-
144-
/* Read Register Configuration */
145-
HAL_ETH_ReadPHYRegister(&EthHandle, PHY_MISR, &regvalue);
146-
147-
regvalue |= PHY_MISR_LINK_INT_EN;
148-
149-
/* Enable Interrupt on change of link status */
150-
HAL_ETH_WritePHYRegister(&EthHandle, PHY_MISR, regvalue);
151134
#endif
152135
}
153136

0 commit comments

Comments
 (0)