static void w5500_network_init(void)
{
wiz_NetInfo info;
uint8_t mac[6] = {0x02,0x00,0x00,0x01,0x02,0x03};
uint8_t ip[4] = {192,168,10,100};
uint8_t sn[4] = {255,255,255,0};
// uint8_t gw[4] = {192,168,10,1};
// uint8_t dns[4] = {0,0,0,0};
memcpy(info.mac, mac, 6);
memcpy(info.ip, ip, 4);
memcpy(info.sn, sn, 4);
// memcpy(info.gw, gw, 4);
// memcpy(info.dns, dns, 4);
info.dhcp = NETINFO_STATIC;
wizchip_setnetinfo(&info);
}
|