From c6020ae8b42505280643755697a337e2b3b55b86 Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 17 Nov 2013 22:15:45 +0000 Subject: [PATCH] Change conf_eth.h to provide additional Rx buffers in SAM4E demo. --- .../src/config/FreeRTOSIPConfig.h | 5 ++--- .../CORTEX_M4_ATSAM4E_Atmel_Studio/src/config/conf_eth.h | 4 ++-- FreeRTOS/Demo/CORTEX_M4_ATSAM4E_Atmel_Studio/src/main_full.c | 2 +- 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 34084d4531..325b716d02 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 68418b1165..842c2293b1 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 0774efa2e8..4274014c87 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. */