高级会员

- 积分
- 906
- 金钱
- 906
- 注册时间
- 2016-3-26
- 在线时间
- 116 小时
|

楼主 |
发表于 2016-5-10 21:14:10
|
显示全部楼层
/* The DP83848 PHY: MII Interrupt Control Register */
#define PHY_MICR ((uint16_t)0x11) /* MII Interrupt Control Register */
#define PHY_MICR_INT_EN ((uint16_t)0x0002) /* PHY Enable interrupts */
#define PHY_MICR_INT_OE ((uint16_t)0x0001) /* PHY Enable output interrupt events */
/* The DP83848 PHY: MII Interrupt Status and Misc. Control Register */
#define PHY_MISR ((uint16_t)0x12) /* MII Interrupt Status and Misc. Control Register */
#define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020) /* Enable Interrupt on change of link status */
#define PHY_LINK_STATUS ((uint16_t)0x2000) /* PHY link status interrupt mask */
这原来的DP83848是MII接口的,为什么我把这段代码复制到程序中,然后GO TO 查看引用定义的地方,找不到是怎么回事?官方源码的例子MII接口怎么还找不到引用定义的地方啊? |
|