Skip to content

Commit

Permalink
Merge pull request #1483 from hathach/clean-rp2040-net-example
Browse files Browse the repository at this point in the history
remove cmake compile macro for net example (use lwipopts.h instead)
  • Loading branch information
hathach committed Jun 1, 2022
2 parents fd8afc7 + ea8a9e0 commit d1d6bd2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions examples/device/net_lwip_webserver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 0 additions & 2 deletions examples/device/net_lwip_webserver/src/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d1d6bd2

Please sign in to comment.