mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Change conf_eth.h to provide additional Rx buffers in SAM4E demo.
This commit is contained in:
parent
fa002f7fdd
commit
c6020ae8b4
|
@ -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
|
/* 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
|
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 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
|
to a pre-determinable value. */
|
||||||
are dynamically allocated and freed. */
|
|
||||||
#define ipconfigNUM_NETWORK_BUFFERS 10
|
#define ipconfigNUM_NETWORK_BUFFERS 10
|
||||||
|
|
||||||
/* A FreeRTOS queue is used to send events from application tasks to the IP
|
/* 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
|
lower value can save RAM, depending on the buffer management scheme used. If
|
||||||
ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must
|
ipconfigCAN_FRAGMENT_OUTGOING_PACKETS is 1 then (ipconfigNETWORK_MTU - 28) must
|
||||||
be divisible by 8. */
|
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
|
/* Set ipconfigUSE_DNS to 1 to include a basic DNS client/resolver. DNS is used
|
||||||
through the FreeRTOS_gethostbyname() API function. */
|
through the FreeRTOS_gethostbyname() API function. */
|
||||||
|
|
|
@ -55,10 +55,10 @@ extern "C" {
|
||||||
#include "gmac.h"
|
#include "gmac.h"
|
||||||
|
|
||||||
/** Number of buffer for RX */
|
/** Number of buffer for RX */
|
||||||
#define GMAC_RX_BUFFERS 16
|
#define GMAC_RX_BUFFERS 64
|
||||||
|
|
||||||
/** Number of buffer for TX */
|
/** Number of buffer for TX */
|
||||||
#define GMAC_TX_BUFFERS 8
|
#define GMAC_TX_BUFFERS 16
|
||||||
|
|
||||||
/** MAC PHY operation max retry count */
|
/** MAC PHY operation max retry count */
|
||||||
#define MAC_PHY_RETRY_MAX 1000000
|
#define MAC_PHY_RETRY_MAX 1000000
|
||||||
|
|
|
@ -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
|
network event hook only after a connection has been established (when the event
|
||||||
passed into the network event hook is eNetworkUp).
|
passed into the network event hook is eNetworkUp).
|
||||||
http://www.FreeRTOS.org/udp */
|
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 )
|
#define mainDISCONNECTED_IP_TASK_PRIORITY ( tskIDLE_PRIORITY )
|
||||||
|
|
||||||
/* UDP command server task parameters. */
|
/* UDP command server task parameters. */
|
||||||
|
|
Loading…
Reference in a new issue