{\r
/* uIP Timing Initialization */\r
clock_init();\r
- timer_set(&ConnectionTimer, CLOCK_SECOND / 10);\r
+ timer_set(&ConnectionTimer, CLOCK_SECOND / 2);\r
timer_set(&ARPTimer, CLOCK_SECOND * 10); \r
\r
/* uIP Stack Initialization */\r
uip_setethaddr(MACAddress);\r
\r
/* DHCP/Server IP Settings Initialization */\r
- #if defined(ENABLE_DHCP)\r
+ #if defined(ENABLE_DHCP_CLIENT)\r
DHCPClientApp_Init();\r
#else\r
uip_ipaddr_t IPAddress, Netmask, GatewayIPAddress;\r
/* Add destination MAC to outgoing packet */\r
uip_arp_out();\r
\r
- RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
+ uip_split_output();\r
}\r
\r
break;\r
\r
/* If a response was generated, send it */\r
if (uip_len > 0)\r
- RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
+ uip_split_output();\r
\r
break;\r
}\r
/* Add destination MAC to outgoing packet */\r
uip_arp_out();\r
\r
- RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
+ /* Split and send the outgoing packet */\r
+ uip_split_output();\r
}\r
}\r
\r
/* Add destination MAC to outgoing packet */\r
uip_arp_out();\r
\r
- RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
+ /* Split and send the outgoing packet */\r
+ uip_split_output();\r
}\r
}\r
\r
/* Add destination MAC to outgoing packet */\r
uip_arp_out();\r
\r
- RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
+ /* Split and send the outgoing packet */\r
+ uip_split_output();\r
}\r
}\r
#endif\r