Skip to content

Commit

Permalink
STM32 / IPV4: ARMmbed#2685 has been forgotten with ARMmbed#2731
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromecoutant committed Sep 19, 2016
1 parent ff89555 commit 79cacd6
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 79cacd6

Please sign in to comment.