#include "ParTest.h"\r
\r
/* The buffer used by the uIP stack to both receive and send. In this case,\r
-because the Ethernet driver has been modified to be zero copy - the uip_buf\r
+because the Ethernet driver is implemented to be zero copy - the uip_buf\r
variable is just a pointer to an Ethernet buffer, and not a buffer in its own\r
right. */\r
extern unsigned char *uip_buf;\r
/* A block time of zero simply means "don't block". */\r
#define uipDONT_BLOCK 0UL\r
\r
-/* How long to wait before attempting to connect the MAC again. */\r
-#define uipINIT_WAIT ( 100 / portTICK_RATE_MS )\r
-\r
/* Shortcut to the header within the Rx buffer. */\r
#define xHeader ((struct uip_eth_hdr *) &uip_buf[ 0 ])\r
\r
-/* Standard constant. */\r
-#define uipTOTAL_FRAME_HEADER_SIZE 54\r
-\r
/*-----------------------------------------------------------*/\r
\r
/*\r
\r
void vuIP_Task( void *pvParameters )\r
{\r
-portBASE_TYPE i;\r
+long i;\r
unsigned long ulNewEvent = 0UL, ulUIP_Events = 0UL;\r
unsigned short usPacketLength;\r
\r
{\r
uip_len = usPacketLength;\r
\r
- /* Standard uIP loop taken from the uIP manual. */\r
if( xHeader->type == htons( UIP_ETHTYPE_IP ) )\r
{\r
uip_arp_ipin();\r
c = strstr( pcInputString, "?" );\r
if( c )\r
{\r
- /* Turn the LED's on or off in accordance with the check box status. */\r
+ /* Turn the LEDs on or off in accordance with the check box status. */\r
if( strstr( c, "LED0=1" ) != NULL )\r
{\r
/* Turn the LEDs on. */\r