lwip_eth.h 676 B

12345678910111213141516171819202122232425262728
  1. #ifndef LWIP_ETH_H
  2. #define LWIP_ETH_H
  3. // #include "fly_config.h"
  4. //#define USE_DHCP 1 /* enable DHCP, if disabled static address is used */
  5. // extern __lwip_dev ethdev; // lwip控制结构体
  6. #define USE_ETH_INTERRUPT
  7. /* MII and RMII mode selection */
  8. #define RMII_MODE // user have to provide the 50 MHz clock by soldering a 50 MHz oscillator
  9. //#define MII_MODE
  10. /* clock the PHY from external 25MHz crystal (only for MII mode) */
  11. #ifdef MII_MODE
  12. #define PHY_CLOCK_MCO
  13. #endif
  14. #ifdef USE_DHCP
  15. /* dhcp_task */
  16. void dhcp_task(void *pvParameters);
  17. #include "dhcp.h"
  18. #endif /* USE_DHCP */
  19. void lwip_eth_setup(void);
  20. #endif /* NETCONF_H */