]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/lwipopts.h
lwip: Update configuration
[pes-rpp/rpp-lwip.git] / src / include / arch / lwipopts.h
index edd609f55860546f7ad23764773be6c98da5ac1e..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
 /*****************************************************************************
 **                    Platform specific locking
 *****************************************************************************/
-#define SYS_LIGHTWEIGHT_PROT            0 /* critical sections */
-#define NO_SYS                          1
+#define SYS_LIGHTWEIGHT_PROT            1 /* critical sections lightweight
+                                          * synchronisation primitives
+                                          */
+#define NO_SYS                          0
 
 /*****************************************************************************
 **                    TCPIP thread - used when NO_SYS defined to 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)
 
 /*****************************************************************************
 /**
  * PBUF_DEBUG: Enable debugging in pbuf.c.
  */
-#define PBUF_DEBUG                      LWIP_DBG_ON | ALL_DBG_ON
+#define PBUF_DEBUG                      LWIP_DBG_OFF | ALL_DBG_ON
 
 /**
  * API_LIB_DEBUG: Enable debugging in api_lib.c.