}\r
\r
printf("MAC Address: 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X 0x%02X\r\n",\r
- MACAddress.addr[0], MACAddress.addr[1], MACAddress.addr[2],\r
- MACAddress.addr[3], MACAddress.addr[4], MACAddress.addr[5]);\r
+ MACAddress.addr[0], MACAddress.addr[1], MACAddress.addr[2],\r
+ MACAddress.addr[3], MACAddress.addr[4], MACAddress.addr[5]);\r
\r
uip_setethaddr(MACAddress);\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_BUSY);\r
\r
/* Read the incomming packet straight into the UIP packet buffer */\r
- RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface, &uip_buf, &uip_len);\r
+ RNDIS_Host_ReadPacket(&Ethernet_RNDIS_Interface, uip_buf, &uip_len);\r
\r
printf("RECEIVED PACKET (%d):\r\n", uip_len);\r
for (uint16_t i = 0; i < uip_len; i++)\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
+ RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
\r
printf("SENT PACKET (%d):\r\n", uip_len);\r
for (uint16_t i = 0; i < uip_len; i++)\r
\r
void ManageConnections(void)\r
{\r
+ /* Manage open connections */\r
if (timer_expired(&ConnectionTimer))\r
{\r
timer_reset(&ConnectionTimer);\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
+ RNDIS_Host_SendPacket(&Ethernet_RNDIS_Interface, uip_buf, uip_len);\r
}\r
\r
LEDs_SetAllLEDs(LEDMASK_USB_READY);\r
}\r
\r
+ /* Manage ARP cache refreshing */\r
if (timer_expired(&ARPTimer))\r
{\r
timer_reset(&ARPTimer);\r