Skip to content

Commit c7a49b7

Browse files
authored
Merge pull request #98 from fpistm/fixes
Review default LwIP options
2 parents b44edf6 + db32552 commit c7a49b7

1 file changed

Lines changed: 30 additions & 1 deletion

File tree

src/lwipopts_default.h

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,35 @@
2525
*/
2626
#define NO_SYS 1
2727

28+
/* LWIP Debug options */
29+
#if !defined(NDEBUG)
30+
#define LWIP_DBG_DEFAULT LWIP_DBG_ON
31+
#else
32+
#define LWIP_DBG_DEFAULT LWIP_DBG_OFF
33+
#endif /* NDEBUG */
34+
35+
#if !defined(LWIP_DEBUG)
36+
#define LWIP_DEBUG LWIP_DBG_DEFAULT
37+
#endif /* LWIP_DEBUG */
38+
#if !defined(NETIF_DEBUG)
39+
#define NETIF_DEBUG LWIP_DBG_DEFAULT
40+
#endif /* NETIF_DEBUG */
41+
#if !defined(DHCP_DEBUG)
42+
#define DHCP_DEBUG LWIP_DBG_DEFAULT
43+
#endif /* DHCP_DEBUG */
44+
#if !defined(UDP_DEBUG)
45+
#define UDP_DEBUG LWIP_DBG_DEFAULT
46+
#endif /* UDP_DEBUG */
47+
#if !defined(MEMP_DEBUG)
48+
#define MEMP_DEBUG LWIP_DBG_DEFAULT
49+
#endif /* MEMP_DEBUG */
50+
#if !defined(MEM_DEBUG)
51+
#define MEM_DEBUG LWIP_DBG_DEFAULT
52+
#endif /* MEM_DEBUG */
53+
#if !defined(ICMP_DEBUG)
54+
#define ICMP_DEBUG LWIP_DBG_DEFAULT
55+
#endif /* ICMP_DEBUG */
56+
2857
/**
2958
* SYS_LIGHTWEIGHT_PROT==1: if you want inter-task protection for certain
3059
* critical regions during buffer allocation, deallocation and memory
@@ -218,7 +247,7 @@ The STM32F4x7 allows computing and verifying the IP, UDP, TCP and ICMP checksums
218247

219248
/** Set this to 1 to include "fsdata_custom.c" instead of "fsdata.c" for the
220249
* file system (to prevent changing the file included in CVS) */
221-
#define HTTPD_USE_CUSTOM_FSDATA 1
250+
#define HTTPD_USE_CUSTOM_FSDATA 0
222251

223252
/*
224253
------------------------------------

0 commit comments

Comments
 (0)