From de0e7b8265131e0e4d5fa0f2d15aaba179fe76ec Mon Sep 17 00:00:00 2001 From: richardbarry Date: Thu, 9 Sep 2010 09:54:18 +0000 Subject: [PATCH] Changed buffer configuration in Ethernet driver for RX RDK port. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1084 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/EMAC.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/EMAC.c b/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/EMAC.c index be191b3e5..f6c8df318 100644 --- a/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/EMAC.c +++ b/Demo/RX600_RX62N-RDK_Renesas/RTOSDemo/webserver/EMAC.c @@ -73,7 +73,7 @@ up on attempting to obtain a free buffer all together. */ #define emacBUFFER_WAIT_ATTEMPTS ( 30 ) /* The number of Rx descriptors. */ -#define emacNUM_RX_DESCRIPTORS 3 +#define emacNUM_RX_DESCRIPTORS 8 /* The number of Tx descriptors. When using uIP there is not point in having more than two. */ @@ -87,7 +87,7 @@ more than two. */ /* The total number of times to wait emacTX_WAIT_DELAY_ms for the Tx descriptor to become free. */ -#define emacTX_WAIT_ATTEMPTS ( 5 ) +#define emacTX_WAIT_ATTEMPTS ( 50 ) /* Only Rx end and Tx end interrupts are used by this driver. */ #define emacTX_END_INTERRUPT ( 1UL << 21UL ) @@ -466,7 +466,7 @@ unsigned long ulReturn = 0; { /* The descriptor contains a frame. Because of the size of the buffers the frame should always be complete. */ - if( (xCurrentRxDesc->status & FP0) == FP0 ) + if( ( xCurrentRxDesc->status & FP0 ) == FP0 ) { ulReturn = xCurrentRxDesc->size; } -- 2.39.5