diff options
author | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2013-11-17 22:15:45 +0000 |
---|---|---|
committer | richardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2> | 2013-11-17 22:15:45 +0000 |
commit | cdbbeac23482e461e4d1384a54cb342eb158a59a (patch) | |
tree | 291e704406d1b6fe340b64190dee5a95fdf6a54e /FreeRTOS/Demo | |
parent | 05086bb2269fb1052d8121056859433839cbe475 (diff) | |
download | freertos-cdbbeac23482e461e4d1384a54cb342eb158a59a.tar.gz |
Change conf_eth.h to provide additional Rx buffers in SAM4E demo.
git-svn-id: http://svn.code.sf.net/p/freertos/code/trunk@2106 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'FreeRTOS/Demo')
3 files changed, 5 insertions, 6 deletions
diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSIPConfig.h b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSIPConfig.h index 34084d453..325b716d0 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSIPConfig.h +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/FreeRTOSIPConfig.h @@ -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. */
diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/conf_eth.h b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/conf_eth.h index 68418b116..842c2293b 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/conf_eth.h +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/conf_eth.h @@ -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
diff --git a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c index 0774efa2e..4274014c8 100644 --- a/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c +++ b/FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c @@ -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. */
|