]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/blobdiff - src/include/arch/lwipopts.h
lwip debug print functions
[pes-rpp/rpp-lwip.git] / src / include / arch / lwipopts.h
index 9629bad4a43fe2f46310403301f34425330006dc..edd609f55860546f7ad23764773be6c98da5ac1e 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               0
+#define STATIC_IP_ADDRESS               1
 
 /*****************************************************************************
 **            lwIP SPECIFIC DEFINITIONS - To be used by lwIP stack
 /*****************************************************************************
 **                    Platform specific locking
 *****************************************************************************/
-#define SYS_LIGHTWEIGHT_PROT            1 /* critical sections */
-#define NO_SYS                          0
+#define SYS_LIGHTWEIGHT_PROT            0 /* critical sections */
+#define NO_SYS                          1
 
 /*****************************************************************************
 **                    TCPIP thread - used when NO_SYS defined to 0
 *****************************************************************************/
 #define TCPIP_THREAD_PRIO               0
-#define TCPIP_THREAD_STACKSIZE          1000
+#define TCPIP_THREAD_STACKSIZE          600
 
 /*****************************************************************************
 **                          Memory Options
 *****************************************************************************/
+//#define MEM_USE_POOLS                   1
 #define MEM_ALIGNMENT                   4 /* dflt 1 */
 #define MEM_SIZE                        (30 * 1024) /* 30K */ /* dflt 1600 */
 #define MEMP_NUM_PBUF                   48 /* dflt 16 */
@@ -87,7 +88,7 @@
 /*****************************************************************************
 **                           DHCP Options
 *****************************************************************************/
-#define LWIP_DHCP                       1
+#define LWIP_DHCP                       0
 #define DHCP_DOES_ARP_CHECK             0
 
 /*****************************************************************************
 #define DEFAULT_TCP_RECVMBOX_SIZE       10
 #define DEFAULT_ACCEPTMBOX_SIZE         10
 
+/*****************************************************************************
+**                          Statistics options
+*****************************************************************************/
+#define LWIP_STATS_DISPLAY              1
+
 /*****************************************************************************
 **                          Debugging options
 *****************************************************************************/
                                          |LWIP_DBG_STATE | LWIP_DBG_FRESH)
 
 #define ALL_DBG_ON                      0
+#define ALL_DBG_OFF                     0 /* higher priority than ALL_DBG_ON */
 
+#ifdef LWIP_DEBUG
+#if !ALL_DBG_OFF
 
 /**
  * ETHARP_DEBUG: Enable debugging in etharp.c.
  */
 #define IP6_DEBUG                       LWIP_DBG_OFF | ALL_DBG_ON
 
+#endif /* !ALL_DBG_OFF */
+#endif /* LWIP_DEBUG */
 
 #endif /* __LWIPOPTS_H__ */