/* Ethernet frame processing task. This task checks to see if a frame has been received, and if so hands off the processing of the frame to the Ethernet processing routines.  */
void Ethernet_Task(void)
/* Ethernet frame processing task. This task checks to see if a frame has been received, and if so hands off the processing of the frame to the Ethernet processing routines.  */
void Ethernet_Task(void)
{
	if (USB_DeviceState != DEVICE_STATE_Configured)
	  return;
	if (FrameIN.FrameLength)
	{
		LEDs_SetAllLEDs(LEDMASK_USB_BUSY);
		Ethernet_ProcessPacket();
		LEDs_SetAllLEDs(LEDMASK_USB_READY);
	}
}