From: richardbarry Date: Thu, 9 Sep 2010 09:54:18 +0000 (+0000) Subject: Changed buffer configuration in Ethernet driver for RX RDK port. X-Git-Tag: V6.1.0~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=de0e7b8265131e0e4d5fa0f2d15aaba179fe76ec;p=freertos 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 --- 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; }