ethernet: ksz80x1: fix build/compile

Originally sourced from: https://github.com/libopencm3/libopencm3/pull/382

fixed some typos from the manual and poor merging/rebaseing,
and one judgment call on using a specific name for a conflicting
bit definition.
This commit is contained in:
Karl Palsson
2018-02-24 13:50:14 +00:00
parent 20b7956d82
commit 23fc65d44c
3 changed files with 8 additions and 9 deletions

View File

@@ -33,7 +33,7 @@
#include <libopencm3/ethernet/mac.h>
#include <libopencm3/ethernet/phy.h>
#include <libopencm3/ethernet/phy_ksz8051mll.h>
#include <libopencm3/ethernet/phy_ksz80x1.h>
/**@{*/
@@ -48,7 +48,7 @@
*/
enum phy_status phy_link_status(uint8_t phy)
{
return eth_smi_read(phy, PHY_REG_CR1) & 0x07;
return eth_smi_read(phy, KSZ80X1_CR1) & 0x07;
}
/*---------------------------------------------------------------------------*/