git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3978 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
e74087e932
commit
4aa2f80db0
|
@ -592,6 +592,7 @@ bool_t mac_lld_poll_link_status(MACDriver *macp) {
|
||||||
uint32_t maccr, bmsr, bmcr;
|
uint32_t maccr, bmsr, bmcr;
|
||||||
|
|
||||||
/* Checks if the link is up, updates the status accordingly and returns.*/
|
/* Checks if the link is up, updates the status accordingly and returns.*/
|
||||||
|
(void)mii_read(macp, MII_BMSR);
|
||||||
bmsr = mii_read(macp, MII_BMSR);
|
bmsr = mii_read(macp, MII_BMSR);
|
||||||
if (!(bmsr & BMSR_LSTATUS))
|
if (!(bmsr & BMSR_LSTATUS))
|
||||||
return macp->link_up = FALSE;
|
return macp->link_up = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue