]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
lwip: Update configuration tms570_emac
authorRostislav Lisovy <lisovy@gmail.com>
Mon, 5 Jan 2015 16:30:07 +0000 (17:30 +0100)
committerRostislav Lisovy <lisovy@gmail.com>
Mon, 5 Jan 2015 16:50:13 +0000 (17:50 +0100)
* Enable DHCP
* Disable static IP
* Increase PBUF_POOL size
* Increase HEAP size

Signed-off-by: Rostislav Lisovy <lisovy@gmail.com>
src/include/arch/lwipopts.h

index 91edd3cd329040af5139a498282bd23d7dc0a2b1..cfd627d456949c7705a4ca7c8c87b9238905c849 100644 (file)
@@ -49,7 +49,7 @@
 ** For Example, for IP Address 192.168.247.1, use the corresponding hex
 ** value 0xC0A8F701.
 */
-#define STATIC_IP_ADDRESS               1
+#define STATIC_IP_ADDRESS               0
 
 /*****************************************************************************
 **            lwIP SPECIFIC DEFINITIONS - To be used by lwIP stack
@@ -60,7 +60,9 @@
 /*****************************************************************************
 **                    Platform specific locking
 *****************************************************************************/
-#define SYS_LIGHTWEIGHT_PROT            1 /* critical sections */
+#define SYS_LIGHTWEIGHT_PROT            1 /* critical sections lightweight
+                                          * synchronisation primitives
+                                          */
 #define NO_SYS                          0
 
 /*****************************************************************************
 *****************************************************************************/
 //#define MEM_USE_POOLS                   1
 #define MEM_ALIGNMENT                   4 /* dflt 1 */
-#define MEM_SIZE                        (30 * 1024) /* 30K */ /* dflt 1600 */
+#define MEM_SIZE                        (64 * 1024) /* dflt 1600 */
 #define MEMP_NUM_PBUF                   48 /* dflt 16 */
 #define MEMP_NUM_TCP_PCB                16 /* dflt 5 */
-#define PBUF_POOL_SIZE                  96 /* dflt 16 */
+#define PBUF_POOL_SIZE                  128 /* dflt 16 */
 
 /*****************************************************************************
 **                           IP Options
@@ -88,7 +90,7 @@
 /*****************************************************************************
 **                           DHCP Options
 *****************************************************************************/
-#define LWIP_DHCP                       0
+#define LWIP_DHCP                       1
 #define DHCP_DOES_ARP_CHECK             0
 
 /*****************************************************************************
 /*****************************************************************************
 **                           TCP  Options
 *****************************************************************************/
-#define TCP_WND                         4096   /* default is 2048 */
-#define TCP_MSS                         1500        /* default is 128 */
+#define TCP_MSS                         512        /* default is 128 */ /* Maximum Segment Size */
+#define TCP_WND                         (TCP_MSS * 4)   /* default is 2048 */ /* Window size */
 #define TCP_SND_BUF                     (4 * TCP_MSS)
 
 /*****************************************************************************