stm32f4x7_phy.h 828 B

12345678910111213141516171819202122
  1. /* Define to prevent recursive inclusion -------------------------------------*/
  2. #ifndef __STM32F4x7_PHY_H
  3. #define __STM32F4x7_PHY_H
  4. #include "includes.h"
  5. #include "lwip/netif.h"
  6. #include "netconf.h"
  7. /* Exported types ------------------------------------------------------------*/
  8. /* Exported constants --------------------------------------------------------*/
  9. #define ETHERNET_PHY_ADDRESS ((uint16_t)0x01)
  10. /* Ethernet Flags for EthStatus variable */
  11. #define ETH_INIT_FLAG 0x01
  12. #define ETH_LINK_FLAG 0x10
  13. void eth_init(void);
  14. uint32_t Eth_Link_PHYITConfig(uint16_t PHYAddress);
  15. void Eth_Link_ITHandler(uint16_t PHYAddress);
  16. void ETH_link_callback(struct netif *netif);
  17. extern __IO uint32_t EthStatus; /* 提供给主程序使用 */
  18. #endif /* __STM32F4x7_PHY_H */