Merge pull request #2739 from jeromecoutant/PR_Update_IPV4

STM32 / IPV4: #2685 has been forgotten with #2731
pull/2808/head
Sam Grove 2016-09-24 16:39:58 -05:00 committed by GitHub
commit e0bf4153a4
1 changed files with 0 additions and 17 deletions

View File

@ -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, &regvalue);
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, &regvalue);
regvalue |= PHY_MISR_LINK_INT_EN;
/* Enable Interrupt on change of link status */
HAL_ETH_WritePHYRegister(&EthHandle, PHY_MISR, regvalue);
#endif
}