Hello,
puci8MACArray[5] = 0x90;
puci8MACArray[4] = 0x78;
puci8MACArray[3] = 0x56;
puci8MACArray[2] = 0x34;
puci8MACArray[1] = 0x12;
puci8MACArray[0] = 0x00;
// LocatorInit();
//LocatorMACAddrSet(puci8MACArray);
//lwIPInit(g_ui32SysClock, puci8MACArray, 0, 0, 0, IPADDR_USE_STATIC);
//
// Setup the device locator service.
// MAP_IntPrioritySet(INT_EMAC0, ETHERNET_INT_PRIORITY);
//MAP_IntPrioritySet(FAULT_SYSTICK, SYSTICK_INT_PRIORITY);
sprintf(p,"%d.%d.%d.%d\n",IP_AddrOct1,IP_ADDR_OCT2,IP_ADDR_OCT3,IP_ADDR_OCT4);
sprintf(b,"%d.%d.%d.%d\n",SUBNET_OCT1,SUBNET_OCT2,SUBNET_OCT3,SUBNET_OCT4);
sprintf(c,"%d.%d.%d.%d\n",GATEWAY_IP_OCT1,GATEWAY_IP_OCT2,GATEWAY_IP_OCT3,GATEWAY_IP_OCT4);
IP_addr = inet_addr(p);
subnet_addr = inet_addr(b);
gateway_addr = inet_addr(c);
lwIPInit(g_ui32SysClock,puci8MACArray, IP_addr, subnet_addr, gateway_addr, IPADDR_USE_STATIC );
udpDestIpAddr = (struct ip_addr *)malloc(sizeof(struct ip_addr));
My requirement is to get the ip address ,gateway address..subnet.....
When i opened inet.c it shows only two header files.But i checked locatorinit() its implementing lwip.It will be convienient if i got in inet.
i checked with stellaris ware and inet.c library is found there.
Regards,
Krishnan