DP83822 instead of DP83848
Has anyone written a driver for the DP83822 PHY ?
I have tried to use the DP83848 driver. I am able to pass the DP83848_Init(&DP83848); in the ethernetif.c but then when it comes to check the list status, then I get a link down status. The LEDs on my Ethernet port are not lit up.
/* Initialize the DP83848 ETH PHY */
DP83848_Init(&DP83848);
if (hal_eth_init_status == HAL_OK)
{
PHYLinkState = DP83848_GetLinkState(&DP83848);
/* Get link state */
if(PHYLinkState <= DP83848_STATUS_LINK_DOWN).
{
netif_set_link_down(netif); // => Goes there.....
netif_set_down(netif);
}
Also is there a way to add a custom PHY to CubeIDE ?
