Skip to content

Commit 76a552a

Browse files
committed
chore: LwIP debug options
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent b44edf6 commit 76a552a

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

src/lwipopts_default.h

Lines changed: 29 additions & 0 deletions
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

0 commit comments

Comments
 (0)