stm32f4x7_phy.h 885 B

1234567891011121314151617181920212223
  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 enet_system_setup(void);
  14. uint32_t Eth_Link_PHYITConfig(uint16_t PHYAddress);
  15. void Eth_Link_EXTIConfig(void);
  16. void Eth_Link_ITHandler(uint16_t PHYAddress);
  17. void ETH_link_callback(struct netif *netif);
  18. extern __IO uint32_t EthStatus; /* 提供给主程序使用 */
  19. #endif /* __STM32F4x7_PHY_H */