From 79cacd6c77acf3bd667f5cc03c41cda16f913d42 Mon Sep 17 00:00:00 2001 From: jeromecoutant Date: Mon, 19 Sep 2016 11:19:53 +0200 Subject: [PATCH] STM32 / IPV4: #2685 has been forgotten with #2731 --- .../lwip-eth/arch/TARGET_STM/stm32xx_emac.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c b/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c index 70a1f766966..eed385c2483 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c +++ b/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c @@ -131,23 +131,6 @@ static void _eth_arch_low_level_init(struct netif *netif) /* Enable MAC and DMA transmission and reception */ HAL_ETH_Start(&EthHandle); - - /**** Configure PHY to generate an interrupt when Eth Link state changes ****/ - /* Read Register Configuration */ - HAL_ETH_ReadPHYRegister(&EthHandle, PHY_MICR, ®value); - - regvalue |= (PHY_MICR_INT_EN | PHY_MICR_INT_OE); - - /* Enable Interrupts */ - HAL_ETH_WritePHYRegister(&EthHandle, PHY_MICR, regvalue); - - /* Read Register Configuration */ - HAL_ETH_ReadPHYRegister(&EthHandle, PHY_MISR, ®value); - - regvalue |= PHY_MISR_LINK_INT_EN; - - /* Enable Interrupt on change of link status */ - HAL_ETH_WritePHYRegister(&EthHandle, PHY_MISR, regvalue); #endif }