提交 050600f4 编写于 作者: 还_没_想_好's avatar 还_没_想_好

[components][drivers]enc28j60 1.默认关闭log打印 2.优化一个未使用的变量

上级 6ecdfca2
#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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册