4 #include <arch/sys_arch.h> 5 #include <lwip/netif.h> 12 u8_t hwaddr[NETIF_MAX_HWADDR_LEN];
13 sys_thread_t net_task;
14 void(*phy_init)(void);
18 extern err_t mcf5225xif_init(
struct netif *);
19 extern void handle_rx_frame(
struct netif*);
21 extern void smi_init(u32_t);
22 extern void smi_write(u8_t,u8_t,u16_t);
23 extern u16_t smi_read(u8_t,u8_t);
25 #define MAX_FRAME_LEN 1518 26 #define MTU_SIZE (MAX_FRAME_LEN-18) 27 #define MSCR_MII_SPEED(clk) ((clk/5000000+1)<<1)