Change conf_eth.h to provide additional Rx buffers in SAM4E demo.

This commit is contained in:
Richard Barry 2013-11-17 22:15:45 +00:00
parent fa002f7fdd
commit c6020ae8b4
3 changed files with 5 additions and 6 deletions

View File

@ -160,8 +160,7 @@ not set to 1 then only FreeRTOS_indet_addr_quick() is available. */
/* ipconfigNUM_NETWORK_BUFFERS defines the total number of network buffer that
are available to the IP stack. The total number of network buffers is limited
to ensure the total amount of RAM that can be consumed by the IP stack is capped
to a pre-determinable value. NOTE: This constant is not used when all buffers
are dynamically allocated and freed. */
to a pre-determinable value. */
#define ipconfigNUM_NETWORK_BUFFERS 10
/* A FreeRTOS queue is used to send events from application tasks to the IP
@ -200,7 +199,7 @@ contain. For normal Ethernet V2 frames the maximum MTU is 1500. Setting a
lower value can save RAM, depending on the buffer management scheme used. If
ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must
be divisible by 8. */
#define ipconfigNETWORK_MTU 1000
#define ipconfigNETWORK_MTU 1500 /* Leave at 1500 for SAM4E. */
/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used
through the FreeRTOS_gethostbyname() API function. */

View File

@ -55,10 +55,10 @@ extern "C" {
#include "gmac.h"
/** Number of buffer for RX */
#define GMAC_RX_BUFFERS 16
#define GMAC_RX_BUFFERS 64
/** Number of buffer for TX */
#define GMAC_TX_BUFFERS 8
#define GMAC_TX_BUFFERS 16
/** MAC PHY operation max retry count */
#define MAC_PHY_RETRY_MAX 1000000

View File

@ -175,7 +175,7 @@ started at the idle priority, then set to configMAX_PRIORITIES - 2 in the
network event hook only after a connection has been established (when the event
passed into the network event hook is eNetworkUp).
http://www.FreeRTOS.org/udp */
#define mainCONNECTED_IP_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )
#define mainCONNECTED_IP_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
#define mainDISCONNECTED_IP_TASK_PRIORITY ( tskIDLE_PRIORITY )
/* UDP command server task parameters. */