/* Examine the status of the next Rx FIFO to see if it contains new data.  */
static unsigned long prvCheckRxFifoStatus(void)
/* Examine the status of the next Rx FIFO to see if it contains new data.  */
static unsigned long prvCheckRxFifoStatus(void)
{
unsigned long ulReturn = 0;
	if( ( pxCurrentRxDesc->status & ACT ) != 0 )
	{
	}
	else if( ( pxCurrentRxDesc->status & FE ) != 0 )
	{
		pxCurrentRxDesc->status &= ~( FP1 | FP0 | FE );
		pxCurrentRxDesc->status &= ~( RMAF | RRF | RTLF | RTSF | PRE | CERF );
		pxCurrentRxDesc->status |= ACT;
		pxCurrentRxDesc = pxCurrentRxDesc->next;
		if( EDMAC.EDRRR.LONG == 0x00000000UL )
		{
			EDMAC.EDRRR.LONG = 0x00000001UL;
		}	}
	else
	{
		if( ( pxCurrentRxDesc->status & FP0 ) == FP0 )
		{
			ulReturn = pxCurrentRxDesc->size;
		}
		else
		{
			prvResetEverything();
		}
	}
	return ulReturn;
}