未验证 提交 290b2fa9 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1407 from aozima/pulls

update enc28j60 driver: ensure enable PHY link changed interrupt.
此差异已折叠。
......@@ -221,6 +221,12 @@
#define PHCON2_TXDIS 0x2000
#define PHCON2_JABBER 0x0400
#define PHCON2_HDLDIS 0x0100
/* ENC28J60 PHY PHIE Register Bit Definitions */
#define PHIE_PLNKIE (1 << 4)
#define PHIE_PGEIE (1 << 1)
/* ENC28J60 PHY PHIR Register Bit Definitions */
#define PHIR_PLNKIF (1 << 4)
#define PHIR_PGEIF (1 << 1)
// ENC28J60 Packet Control Byte Bit Definitions
#define PKTCTRL_PHUGEEN 0x08
......@@ -318,12 +324,12 @@ struct net_device
rt_uint32_t phy_id;
/* spi device */
struct rt_spi_device * spi_device;
struct rt_spi_device *spi_device;
struct rt_mutex lock;
};
/* export function */
extern rt_err_t enc28j60_attach(const char * spi_device_name);
extern rt_err_t enc28j60_attach(const char *spi_device_name);
extern void enc28j60_isr(void);
#endif // EN28J60_H_INCLUDED
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册