金牌会员
 
- 积分
- 1040
- 金钱
- 1040
- 注册时间
- 2022-4-20
- 在线时间
- 373 小时
|
发表于 2022-9-19 11:22:59
|
显示全部楼层
试试这个地址定义- #ifdef DP83848_PHY
- /*PHY Address*/
- #define EMAC_PHY_ADDRESS 0x01
- #define PHY_SR ((uint16_t)0x10) /*!< PHY status register Offset */
- #define PHY_MICR ((uint16_t)0x11) /*!< MII Interrupt Control Register */
- #define PHY_MISR ((uint16_t)0x12) /*!< MII Interrupt Status and Misc. Control Register */
-
- #define PHY_LINK_STATUS ((uint16_t)0x0001) /*!< PHY Link mask */
- #define PHY_SPEED_STATUS ((uint16_t)0x0002) /*!< PHY Speed mask */
- #define PHY_DUPLEX_STATUS ((uint16_t)0x0004) /*!< PHY Duplex mask */
- #define PHY_MICR_INT_EN ((uint16_t)0x0002) /*!< PHY Enable interrupts */
- #define PHY_MICR_INT_OE ((uint16_t)0x0001) /*!< PHY Enable output interrupt events */
- #define PHY_MISR_LINK_INT_EN ((uint16_t)0x0020U) /*!< Enable Interrupt on change of link status */
- #define PHY_LINK_INTERRUPT ((uint16_t)0x2000U) /*!< PHY link status interrupt mask */
- #endif
复制代码
|
|