Skip to content

Commit df80144

Browse files
committed
Update lwipopts.h from lwipopts_examples_common.h
Needed for mqtt example using tls
1 parent f9438dc commit df80144

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/lwipopts.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#ifndef __LWIPOPTS_H__
2-
#define __LWIPOPTS_H__
1+
#ifndef _LWIPOPTS_EXAMPLE_COMMONH_H
2+
#define _LWIPOPTS_EXAMPLE_COMMONH_H
3+
34

45
// Common settings used in most of the pico_w examples
56
// (see https://www.nongnu.org/lwip/2_1_x/group__lwip__opts.html for details)
@@ -19,7 +20,9 @@
1920
#define MEM_LIBC_MALLOC 0
2021
#endif
2122
#define MEM_ALIGNMENT 4
23+
#ifndef MEM_SIZE
2224
#define MEM_SIZE 4000
25+
#endif
2326
#define MEMP_NUM_TCP_SEG 32
2427
#define MEMP_NUM_ARP_QUEUE 10
2528
#define PBUF_POOL_SIZE 24

0 commit comments

Comments
 (0)