打开或关闭DHCP 的部份, 在main.c 的 main()func
tion 中
#ifdef __DHCPC_H__
// setup the dhcp renew timer the make the first request
timer_set(&dhcp_timer, CLOCK_SECOND * 600);
dhcpc_init(&uip_ethaddr, 6);
//dhcpc_request();
#else
uip_ipaddr(ipaddr, 192,168,7,51); //Host IP address
uip_sethostaddr(ipaddr);
.....
將 #ifndef __DHCPC_H__ 改成 #ifdef __DHCPC_H__