aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/mac_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-25 12:14:20 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-25 12:14:20 +0000
commit4aa2f80db06157af712cb11321578dbabe4b524d (patch)
tree60d9c2c54bda8d1df82b70b9e7789f8d2a86408a /os/hal/platforms/STM32/mac_lld.c
parente74087e93299abfbd5170c8b60b61d9cd16aedab (diff)
downloadChibiOS-4aa2f80db06157af712cb11321578dbabe4b524d.tar.gz
ChibiOS-4aa2f80db06157af712cb11321578dbabe4b524d.tar.bz2
ChibiOS-4aa2f80db06157af712cb11321578dbabe4b524d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3978 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/mac_lld.c')
-rw-r--r--os/hal/platforms/STM32/mac_lld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/mac_lld.c b/os/hal/platforms/STM32/mac_lld.c
index 6f850cd26..a3ade7cbc 100644
--- a/os/hal/platforms/STM32/mac_lld.c
+++ b/os/hal/platforms/STM32/mac_lld.c
@@ -592,6 +592,7 @@ bool_t mac_lld_poll_link_status(MACDriver *macp) {
uint32_t maccr, bmsr, bmcr;
/* Checks if the link is up, updates the status accordingly and returns.*/
+ (void)mii_read(macp, MII_BMSR);
bmsr = mii_read(macp, MII_BMSR);
if (!(bmsr & BMSR_LSTATUS))
return macp->link_up = FALSE;