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;
}
/*---------------------------------------------------------------------------*/

View File

@@ -38,7 +38,7 @@ ARFLAGS = rcs
OBJS = adc.o adc_common_v1.o can.o desig.o flash.o gpio.o \
rcc.o rtc.o timer.o
OBJS += mac.o mac_stm32fxx7.o phy.o phy_ksz8051mll.o
OBJS += mac.o mac_stm32fxx7.o phy.o phy_ksz80x1.o
OBJS += crc_common_all.o dac_common_all.o dma_common_l1f013.o \
gpio_common_all.o i2c_common_v1.o iwdg_common_all.o \