#ifndef _LAN8720_H_
#define _LAN8720_H_
#include "stdint.h"


typedef struct  
{
  unsigned char mac[6];      //MAC地址
  unsigned char remoteip[4];	//远端主机IP地址 
  unsigned char ip[4];       //本机IP地址
  unsigned char netmask[4]; 	//子网掩码
  unsigned char gateway[4]; 	//默认网关的IP地址
}lwip_dev;




extern uint8_t gCfgLoca_MAC[];
extern char Enet_init_status;
extern unsigned char g_local_ip[4];     //本地默认ip
extern unsigned char g_local_mac[];  //默认mac地址42:00:00:00:00:01
extern unsigned char g_netmask[4];      //子网掩码
extern unsigned char g_gateway[4];      //网关






//void Lan8720_Init(void);
unsigned int Lwip_init(void);
void Lan8720_Init(void);
void init_enet_module();








#endif

