mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-05-10 07:09:04 -04:00
Changed buffer configuration in Ethernet driver for RX RDK port.
This commit is contained in:
parent
ccf36aeed4
commit
2fca46e3e4
|
@ -73,7 +73,7 @@ up on attempting to obtain a free buffer all together. */
|
||||||
#define emacBUFFER_WAIT_ATTEMPTS ( 30 )
|
#define emacBUFFER_WAIT_ATTEMPTS ( 30 )
|
||||||
|
|
||||||
/* The number of Rx descriptors. */
|
/* 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
|
/* The number of Tx descriptors. When using uIP there is not point in having
|
||||||
more than two. */
|
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
|
/* The total number of times to wait emacTX_WAIT_DELAY_ms for the Tx descriptor to
|
||||||
become free. */
|
become free. */
|
||||||
#define emacTX_WAIT_ATTEMPTS ( 5 )
|
#define emacTX_WAIT_ATTEMPTS ( 50 )
|
||||||
|
|
||||||
/* Only Rx end and Tx end interrupts are used by this driver. */
|
/* Only Rx end and Tx end interrupts are used by this driver. */
|
||||||
#define emacTX_END_INTERRUPT ( 1UL << 21UL )
|
#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 descriptor contains a frame. Because of the size of the buffers
|
||||||
the frame should always be complete. */
|
the frame should always be complete. */
|
||||||
if( (xCurrentRxDesc->status & FP0) == FP0 )
|
if( ( xCurrentRxDesc->status & FP0 ) == FP0 )
|
||||||
{
|
{
|
||||||
ulReturn = xCurrentRxDesc->size;
|
ulReturn = xCurrentRxDesc->size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue