summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2022-06-01 16:17:46 +0700
committerGitHub <[email protected]>2022-06-01 16:17:46 +0700
commitd1d6bd283103be951e81b02e0a651a770452d5f0 (patch)
treeb8dc20b49bee5a20abab42976a98d158aa2f3070 /examples
parentfd8afc7e3b5539b86dbeb3ac51bb88bb93d4923a (diff)
parentea8a9e024983441c4b2cb5ee27acf7953a2b607e (diff)
Merge pull request #1483 from hathach/clean-rp2040-net-example
remove cmake compile macro for net example (use lwipopts.h instead)
Diffstat (limited to 'examples')
-rw-r--r--examples/device/net_lwip_webserver/CMakeLists.txt6
-rw-r--r--examples/device/net_lwip_webserver/src/lwipopts.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/examples/device/net_lwip_webserver/CMakeLists.txt b/examples/device/net_lwip_webserver/CMakeLists.txt
index 7500f6e9e..8e3f0f5a8 100644
--- a/examples/device/net_lwip_webserver/CMakeLists.txt
+++ b/examples/device/net_lwip_webserver/CMakeLists.txt
@@ -69,12 +69,6 @@ if (EXISTS ${TOP}/lib/lwip/src)
${TOP}/lib/networking/rndis_reports.c
)
- target_compile_definitions(${PROJECT} PUBLIC
- PBUF_POOL_SIZE=2
- TCP_WND=2*TCP_MSS
- HTTPD_USE_CUSTOM_FSDATA=0
- )
-
# Configure compilation flags and libraries for the example... see the corresponding function
# in hw/bsp/FAMILY/family.cmake for details.
family_configure_device_example(${PROJECT})
diff --git a/examples/device/net_lwip_webserver/src/lwipopts.h b/examples/device/net_lwip_webserver/src/lwipopts.h
index 639619f63..a215017c7 100644
--- a/examples/device/net_lwip_webserver/src/lwipopts.h
+++ b/examples/device/net_lwip_webserver/src/lwipopts.h
@@ -49,9 +49,7 @@
#define TCP_MSS (1500 /*mtu*/ - 20 /*iphdr*/ - 20 /*tcphhr*/)
#define TCP_SND_BUF (2 * TCP_MSS)
-#ifndef TCP_WND
#define TCP_WND (TCP_MSS)
-#endif
#define ETHARP_SUPPORT_STATIC_ENTRIES 1