#define LWIP_CHKSUM_ALGORITHM 2
#endif
+#ifdef LWIP_DEBUG
+
+extern int32_t rpp_sci_printf(const char* format, ...);
+#define LWIP_PLATFORM_DIAG(expr) rpp_sci_printf expr
+
+#else
+#define LWIP_PLATFORM_DIAG(expr)
+#endif
+
//#define DEBUG
#ifdef DEBUG
-#define LWIP_PLATFORM_DIAG(expr) LWIP_PLATFORM_ASSERT(expr)
+/* for passing arguments to print function */
+#define CC_ASSERT(message, assertion) do { if(!(assertion)) \
+ LWIP_PLATFORM_DIAG(message); } while(0)
//extern void __error__(char *pcFilename, unsigned long ulLine);
extern int32_t rpp_sci_printkb(const char* format, ...);
*/
#else
#define LWIP_PLATFORM_ASSERT(expr)
+#define CC_ASSERT(message, assertion)
#endif /* DEBUG */
/* "lightweight" synchronization mechanisms */
** 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 */
/*****************************************************************************
** 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__ */
} pbuf_layer;
typedef enum {
- PBUF_RAM, /* pbuf data is stored in RAM */
- PBUF_ROM, /* pbuf data is stored in ROM */
- PBUF_REF, /* pbuf comes from the pbuf pool */
- PBUF_POOL /* pbuf payload refers to RAM */
+ PBUF_RAM = 0, /* pbuf data is stored in RAM */
+ PBUF_ROM = 1, /* pbuf data is stored in ROM */
+ PBUF_REF = 2, /* pbuf comes from the pbuf pool */
+ PBUF_POOL = 3 /* pbuf payload refers to RAM */
} pbuf_type;