Skip to content

Commit d1d6bd2

Browse files
authored
Merge pull request hathach#1483 from hathach/clean-rp2040-net-example
remove cmake compile macro for net example (use lwipopts.h instead)
2 parents fd8afc7 + ea8a9e0 commit d1d6bd2

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

examples/device/net_lwip_webserver/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@ if (EXISTS ${TOP}/lib/lwip/src)
6969
${TOP}/lib/networking/rndis_reports.c
7070
)
7171

72-
target_compile_definitions(${PROJECT} PUBLIC
73-
PBUF_POOL_SIZE=2
74-
TCP_WND=2*TCP_MSS
75-
HTTPD_USE_CUSTOM_FSDATA=0
76-
)
77-
7872
# Configure compilation flags and libraries for the example... see the corresponding function
7973
# in hw/bsp/FAMILY/family.cmake for details.
8074
family_configure_device_example(${PROJECT})

examples/device/net_lwip_webserver/src/lwipopts.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@
4949

5050
#define TCP_MSS (1500 /*mtu*/ - 20 /*iphdr*/ - 20 /*tcphhr*/)
5151
#define TCP_SND_BUF (2 * TCP_MSS)
52-
#ifndef TCP_WND
5352
#define TCP_WND (TCP_MSS)
54-
#endif
5553

5654
#define ETHARP_SUPPORT_STATIC_ENTRIES 1
5755

0 commit comments

Comments
 (0)