From 050600f4a8450b7e5b62af0a927c32530fef2815 Mon Sep 17 00:00:00 2001 From: tangyuxin <462747508@qq.com> Date: Tue, 26 Jun 2018 11:00:52 +0800 Subject: [PATCH] =?UTF-8?q?[components][drivers]enc28j60=201.=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=85=B3=E9=97=ADlog=E6=89=93=E5=8D=B0=202.=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=B8=80=E4=B8=AA=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/spi/enc28j60.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/components/drivers/spi/enc28j60.c b/components/drivers/spi/enc28j60.c index b37b2244e..f579dd8fd 100644 --- a/components/drivers/spi/enc28j60.c +++ b/components/drivers/spi/enc28j60.c @@ -1,8 +1,8 @@ #include "enc28j60.h" -#define NET_TRACE -#define ETH_RX_DUMP -#define ETH_TX_DUMP +/* #define NET_TRACE */ +/* #define ETH_RX_DUMP */ +/* #define ETH_TX_DUMP */ #ifdef NET_TRACE #define NET_DEBUG rt_kprintf @@ -189,10 +189,8 @@ static void enc28j60_interrupt_enable(struct rt_spi_device *spi_device, uint32_t static rt_bool_t enc28j60_check_link_status(struct rt_spi_device *spi_device) { uint16_t reg; - int duplex; reg = enc28j60_phy_read(spi_device, PHSTAT2); - duplex = reg & PHSTAT2_DPXSTAT; if (reg & PHSTAT2_LSTAT) { @@ -206,7 +204,6 @@ static rt_bool_t enc28j60_check_link_status(struct rt_spi_device *spi_device) } } - /************************* RT-Thread Device Interface *************************/ void enc28j60_isr(void) { -- GitLab